aws.cloudformation.get_template
Example SQL Queries
SELECT * FROMaws.cloudformation.get_template;Description
Returns the template body for a specified stack. You can get the template for running or deleted stacks.
For deleted stacks, GetTemplate returns the template for up to 90 days after the stack has been deleted.
If the template doesn't exist, a ValidationError is returned.
Table Definition
| Column Name | Column Data Type |
|---|---|
| change_set_name Input Column The name or Amazon Resource Name (ARN) of a change set for which CloudFormation returns the associated template. If you specify a name, you must also specify the StackName. | VARCHAR |
| stack_name Input Column The name or the unique stack ID that's associated with the stack, which aren't always interchangeable:
Default: There is no default value. | VARCHAR |
| template_stage Input Column For templates that include transforms, the stage of the template that CloudFormation returns. To get the user-submitted template, specify Original. To get the template after CloudFormation has processed all transforms, specify Processed. If the template doesn't include transforms, Original and Processed return the same template. By default, CloudFormation specifies Processed. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| stages_available The stage of the template that you can retrieve. For stacks, the Original and Processed templates are always available. For change sets, the Original template is always available. After CloudFormation finishes creating the change set, the Processed template becomes available. | VARCHAR[] |
Show child fields
| |
| template_body Structure containing the template body. (For more information, go to Template Anatomy in the CloudFormation User Guide.) CloudFormation returns the same template that was used when the stack was created. | VARCHAR |