CmdID / aws / aws cloudformation
aws cloudformation get-template
Returns the template body for a specified stack. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--change-set-nameThe name or Amazon Resource Name (ARN) of a change set for which CloudFormation returns the associated template.--stack-nameThe name or the unique stack ID that's associated with the stack, which aren't always interchangeable: Running stacks: You can specify either the stack's name or its unique stack ID.--template-stageFor templates that include transforms, the stage of the template that CloudFormation returns.