Skip to content

CloudFormation create-stack operation, merge --template-body and --template-url args to --template #9930

@cy00p

Description

@cy00p

Describe the feature

The only required argument for the create-stack operation is --stack-name, and it's mentioned when you try to run aws cloudformation create-stack without any arguments. But running the command with that argument gives the error to either use Template URL or Template Body.

Image

Could we rework this and use just one argument, like --template, that can accept whatever path you provide to your template or even the raw template body?

Use Case

For newbies, having to go through the docs, just to find which arg to exactly use is not necessary, because in both of them, you are required to pass in a URI or raw json/yaml, and for the former, know which argument requires a certain scheme you specify.
Another thing, running aws cloudformation create-stack should tell you how many exact arguments it needs to be successful, from the go i.e. --stack-name and --template.

Proposed Solution

Whatever is provided after the --template arg can be parsed to either a URI or raw json/yaml.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CLI version used

aws-cli/2.22.3

Environment details (OS name and version, etc.)

Python/3.12.6 Windows/11 exe/AMD64

Metadata

Metadata

Assignees

Labels

cloudformationfeature-requestA feature should be added or improved.p3This is a minor priority issueservice-apiThis issue is due to a problem in a service API, not the SDK implementation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions