aws:createStack –
                Create an Amazon CloudFormation stack
Creates an Amazon CloudFormation stack from a template.
Note
The aws:createStack action supports automatic throttling retry. For
                more information, see Configuring automatic retry for
                    throttled operations.
For supplemental information about creating CloudFormation stacks, see CreateStack in the Amazon CloudFormation API Reference.
Input
- Capabilities
- 
                    A list of values that you specify before CloudFormation can create certain stacks. Some stack templates include resources that can affect permissions in your Amazon Web Services account. For those stacks, you must explicitly acknowledge their capabilities by specifying this parameter. Valid values include CAPABILITY_IAM,CAPABILITY_NAMED_IAM, andCAPABILITY_AUTO_EXPAND.CAPABILITY_IAM and CAPABILITY_NAMED_IAMIf you have IAM resources, you can specify either capability. If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM. If you don't specify this parameter, this action returns anInsufficientCapabilitieserror. The following resources require you to specify eitherCAPABILITY_IAMorCAPABILITY_NAMED_IAM.If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions, if necessary. For more information, see Acknowledging IAM Resources in Amazon CloudFormation Templates. CAPABILITY_AUTO_EXPANDSome template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. For more information, see Using Amazon CloudFormation Macros to Perform Custom Processing on Templates in the Amazon CloudFormation User Guide. Type: array of Strings Valid Values: CAPABILITY_IAM | CAPABILITY_NAMED_IAM | CAPABILITY_AUTO_EXPANDRequired: No 
- ClientRequestToken
- 
                    A unique identifier for this CreateStack request. Specify this token if you set maxAttempts in this step to a value greater than 1. By specifying this token, CloudFormation knows that you aren't attempting to create a new stack with the same name. Type: String Required: No Length Constraints: Minimum length of 1. Maximum length of 128. Pattern: [a-zA-Z0-9][-a-zA-Z0-9]* 
- DisableRollback
- 
                    Set to trueto turn off rollback of the stack if stack creation failed.Conditional: You can specify either the DisableRollbackparameter or theOnFailureparameter, but not both.Default: falseType: Boolean Required: No 
- NotificationARNs
- 
                    The Amazon Simple Notification Service (Amazon SNS) topic ARNs for publishing stack-related events. You can find SNS topic ARNs using the Amazon SNS console, https://console.amazonaws.cn/sns/v3/home . Type: array of Strings Array Members: Maximum number of 5 items. Required: No 
- OnFailure
- 
                    Determines the action to take if stack creation failed. You must specify DO_NOTHING,ROLLBACK, orDELETE.Conditional: You can specify either the OnFailureparameter or theDisableRollbackparameter, but not both.Default: ROLLBACKType: String Valid Values: DO_NOTHING | ROLLBACK | DELETERequired: No 
- Parameters
- 
                    A list of Parameterstructures that specify input parameters for the stack. For more information, see the Parameter data type.Type: array of Parameter objects Required: No 
- ResourceTypes
- 
                    The template resource types that you have permissions to work with for this create stack action. For example: AWS::EC2::Instance,AWS::EC2::*, orCustom::. Use the following syntax to describe template resource types.MyCustomInstance- 
                            For all Amazon resources: AWS::*
- 
                            For all custom resources: Custom::*
- 
                            For a specific custom resource: Custom::logical_ID
- 
                            For all resources of a particular Amazon Web Services service: AWS::service_name::*
- 
                            For a specific Amazon resource: AWS::service_name::resource_logical_ID
 If the list of resource types doesn't include a resource that you're creating, the stack creation fails. By default, CloudFormation grants permissions to all resource types. IAM uses this parameter for CloudFormation-specific condition keys in IAM policies. For more information, see Controlling Access with Amazon Identity and Access Management. Type: array of Strings Length Constraints: Minimum length of 1. Maximum length of 256. Required: No 
- 
                            
- RoleARN
- 
                    The Amazon Resource Name (ARN) of an IAM role that CloudFormation assumes to create the stack. CloudFormation uses the role's credentials to make calls on your behalf. CloudFormation always uses this role for all future operations on the stack. As long as users have permission to operate on the stack, CloudFormation uses this role even if the users don't have permission to pass it. Ensure that the role grants the least amount of privileges. If you don't specify a value, CloudFormation uses the role that was previously associated with the stack. If no role is available, CloudFormation uses a temporary session that is generated from your user credentials. Type: String Length Constraints: Minimum length of 20. Maximum length of 2048. Required: No 
- StackName
- 
                    The name that is associated with the stack. The name must be unique in the Region in which you're creating the stack. NoteA stack name can contain only alphanumeric characters (case sensitive) and hyphens. It must start with an alphabetic character and can't be longer than 128 characters. Type: String Required: Yes 
- StackPolicyBody
- 
                    Structure containing the stack policy body. For more information, see Prevent Updates to Stack Resources. Conditional: You can specify either the StackPolicyBodyparameter or theStackPolicyURLparameter, but not both.Type: String Length Constraints: Minimum length of 1. Maximum length of 16384. Required: No 
- StackPolicyURL
- 
                    Location of a file containing the stack policy. The URL must point to a policy located in an S3 bucket in the same region as the stack. The maximum file size allowed for the stack policy is 16 KB. Conditional: You can specify either the StackPolicyBodyparameter or theStackPolicyURLparameter, but not both.Type: String Length Constraints: Minimum length of 1. Maximum length of 1350. Required: No 
- Tags
- 
                    Key-value pairs to associate with this stack. CloudFormation also propagates these tags to the resources created in the stack. You can specify a maximum number of 10 tags. Type: array of Tag objects Required: No 
- TemplateBody
- 
                    Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. For more information, see Template Anatomy. Conditional: You can specify either the TemplateBodyparameter or theTemplateURLparameter, but not both.Type: String Length Constraints: Minimum length of 1. Required: No 
- TemplateURL
- 
                    Location of a file containing the template body. The URL must point to a template that is located in an S3 bucket. The maximum size allowed for the template is 460,800 bytes. For more information, see Template Anatomy. Conditional: You can specify either the TemplateBodyparameter or theTemplateURLparameter, but not both.Type: String Length Constraints: Minimum length of 1. Maximum length of 1024. Required: No 
- TimeoutInMinutes
- 
                    The amount of time that can pass before the stack status becomes CREATE_FAILED. IfDisableRollbackisn't set or is set tofalse, the stack will be rolled back.Type: Integer Valid Range: Minimum value of 1. Required: No 
Outputs
- StackId
- 
                        Unique identifier of the stack. Type: String 
- StackStatus
- 
                        Current status of the stack. Type: String Valid Values: CREATE_IN_PROGRESS | CREATE_FAILED | CREATE_COMPLETE | ROLLBACK_IN_PROGRESS | ROLLBACK_FAILED | ROLLBACK_COMPLETE | DELETE_IN_PROGRESS | DELETE_FAILED | DELETE_COMPLETE | UPDATE_IN_PROGRESS | UPDATE_COMPLETE_CLEANUP_IN_PROGRESS | UPDATE_COMPLETE | UPDATE_ROLLBACK_IN_PROGRESS | UPDATE_ROLLBACK_FAILED | UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS | UPDATE_ROLLBACK_COMPLETE | REVIEW_IN_PROGRESSRequired: Yes 
- StackStatusReason
- 
                        Success or failure message associated with the stack status. Type: String Required: No For more information, see CreateStack. 
Security considerations
Before you can use the aws:createStack action, you must
                assign the following policy to the IAM Automation assume role. For more
                information about the assume role, see Task 1: Create a service role for
                        Automation.