aws-sam-cli
aws-sam-cli copied to clipboard
Feature request: Add `--change-set-name` to `sam deploy` command
Describe your idea/feature/enhancement
Provide a clear description. Ex. I wish SAM CLI would [...]
See https://github.com/aws/aws-cli/issues/5435 for reference. We are reviewing requests involving the AWS CLI CloudFormation package/deploy customization for consistency with the SAM CLI. Is adding a parameter to customize the change set name via the sam deploy
command something that the SAM CLI team would consider?
Proposal
Add details of how to add this to the product.
Things to consider:
- Will this require any updates to the SAM Spec
Additional Details
https://docs.aws.amazon.com/cli/latest/reference/cloudformation/create-change-set.html seems to allow a name for the changeset. I'll tag this a feature request.
Currently running into this because SAM uses samcli-deploy<unix timestamp>
as the changeset name, causing errors during parallel deployments of different stacks. Using a UUID or just including the stack name in the changeset name would be a better default.
I'd also like this feature. It'd be especially useful if we could get the changeset name outputted as a machine readable output. Although if we can set it in advance, that's probably good enough.