AWS::CloudFormation::StackThe AWS::CloudFormation::Stack resource nests a stack as a resource in a top-level template.
15 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
StackName | string | RequiredCreate-only |
Capabilities | Array<string> | |
Description | string | |
DisableRollback | boolean | |
EnableTerminationProtection | boolean | |
NotificationARNs | Array<string> | |
Parameters | object | |
RoleARN | string | |
StackPolicyBody | object | |
StackPolicyURL | string | Write-only |
StackStatusReason | string | |
Tags | Array<Tag> | |
TemplateBody | objectstring | |
TemplateURL | string | Write-only |
TimeoutInMinutes | integer |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
ChangeSetId | string | - |
CreationTime | string | - |
LastUpdateTime | string | - |
Outputs | Array<Output> | - |
ParentId | string | - |
RootId | string | - |
StackId | string | - |
StackStatus | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::CloudFormation::Stack
Resources:
MyResource:
Type: AWS::CloudFormation::Stack
Properties:
StackName: "my-stackname"
Tags:
- Key: Environment
Value: Production
Description: !Ref "AWS::StackName"Permissions CloudFormation needs in your IAM role to manage this resource.
cloudformation:DescribeStackscloudformation:CreateStackiam:PassRolecloudformation:DescribeStackscloudformation:UpdateStackcloudformation:UpdateTerminationProtectioncloudformation:SetStackPolicyiam:PassRolecloudformation:DescribeStackscloudformation:DeleteStackcloudformation:DescribeStackscloudformation:GetStackPolicycloudformation:GetTemplatecloudformation:ListStacksEverything you need to know about CloudFormation on one page. HD quality, print-friendly.
Download Free InfographicStackIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
StackName