--add-resources does not exist in aws cloudformation create-generated-template command #8856
Labels
closing-soon
This issue will automatically close in 4 days unless further comments are made.
cloudformation
documentation
This is a problem with documentation.
Describe the issue
Following the step4 of Documentation "Create a template from scanned resources (AWS CLI)" https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/iac-generator-create-template-from-scanned-resources.html#create-template-from-scanned-resources-cli
It says
Step 4: Create your stack template
To create a new stack template, use the create-generated-template command, specifying your template name and your JSON text file. When the --template-configuration option isn't included, the UpdateReplacePolicy and DeletionPolicy policies are set to Retain by default.
When you actually run this command you will get this error.
You can fix this issue by changing the --add-resources to --resources
Links
Step4 from this documentation
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/iac-generator-create-template-from-scanned-resources.html#create-template-from-scanned-resources-cli : Create a template from scanned resources - Create a template from scanned resources (AWS CLI)
The text was updated successfully, but these errors were encountered: