CmdID / aws / aws cloudformation
aws cloudformation create-generated-template
Creates a template from existing resources that are not already managed with CloudFormation. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--generated-template-nameThe name assigned to the generated template.--resourcesAn optional list of resources to be included in the generated template.--stack-nameAn optional name or ARN of a stack to use as the base stack for the generated template.--template-configurationThe configuration details of the generated template, including the DeletionPolicy and UpdateReplacePolicy.