aws-cli
aws-cli copied to clipboard
Add --change-set-name to aws cloudformation deploy command
Is your feature request related to a problem? Please describe.
I would like to have CI/CD process which looks like this:
- Create a new change set for review:
aws cloudformation deploy \
--stack-name XXX \
--change-set-name ${BRANCH_NAME}-${BUILD_ID} \
--no-execute-changeset \
...
- Display what will be changed:
aws cloudformation describe-change-set \
--stack-name XXX \
--change-set-name ${BRANCH_NAME}-${BUILD_ID} \
...
- Wait for confirmation
- Execute change set
aws cloudformation change-set-execute \
--stack-name XXX \
--change-set-name ${BRANCH_NAME}-${BUILD_ID} \
...
Describe the solution you'd like
I would like to add a new parameter --change-set-name to the deploy command, so CI/CD service can set its own name for the new change set.
Describe alternatives you've considered
- Use
aws cloudformation create-change-set
It doesn't solve problems that deploy command solves, for example I don't need to think about --change-set-type (CREATE or UPDATE).
- Query (filter) the output of
aws cloudformation deploy --no-execute-changeset
A change set name awscli-cloudformation-package-deploy-* is not descriptive and I would like to have better names in logs and CloudFormation UI :)
I can try to impelement this new feature as my first pull request, but first I would like to know what do you think :)
Hi @y3ti,
I think this makes sense since the deploy action IS creating a change set.
I'm going to pass this over to the CloudFormation team that supports this AWS CLI customization. I'll let them know that you're interested in opening a PR.
I am part of the company Scania (Volkswagen group). We are also interested in this feature. This will be very useful to avoid custom bash scripting in the CI/CD.