-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Description
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.
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