Skip to content

Instantly share code, notes, and snippets.

@douglampe
Last active January 14, 2022 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglampe/c91a4593568f4aaa121920f932545bae to your computer and use it in GitHub Desktop.
Save douglampe/c91a4593568f4aaa121920f932545bae to your computer and use it in GitHub Desktop.
Create CloudFormation stack from template for branch in GitHub Action
- name: Create dev stack
run: |
aws cloudformation deploy --stack-name feature-$(echo ${GITHUB_REF##*/} | tr -cd '[a-zA-Z0-9-]') \
--template-body file://cloudformation/site-resources.yml \
--parameters ParameterKey=Environment,ParameterValue=Dev
--tags Key=environment,Value=dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment