aws-sam-cli icon indicating copy to clipboard operation
aws-sam-cli copied to clipboard

Feature request: Add `--change-set-name` to `sam deploy` command

Open tim-finnigan opened this issue 1 year ago • 3 comments

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:

  1. Will this require any updates to the SAM Spec

Additional Details

tim-finnigan avatar Sep 12 '23 23:09 tim-finnigan

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.

sriram-mv avatar Sep 12 '23 23:09 sriram-mv

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.

Jonathan-Landeed avatar Mar 21 '24 19:03 Jonathan-Landeed

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.

mew1033 avatar Mar 21 '24 19:03 mew1033