💾 Archived View for cfdocs.wetterberg.nu › cfn-using-console-create-stack-template.gemini captured on 2024-02-05 at 10:03:29. Gemini links have been rewritten to link to archived content
View Raw
More Information
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
Selecting a stack template
Search
After starting the Create Stack wizard, you specify the template that you want AWS CloudFormation to use to create your stack.
starting the Create Stack wizard
AWS CloudFormation templates are JSON- or YAML-formatted files that specify the AWS resources that make up your stack. For more information about AWS CloudFormation templates, see Working with AWS CloudFormation templates.
Working with AWS CloudFormation templates
- To choose a stack template:*
- On the ** Specify template** page, choose a stack template by using one of the following options:**Template is ready**Specify a completed template you have ready for creating a stack.In the **Specify template** section, select the appropriate option based on the template's location:Amazon S3 URLSpecify a URL to a template in an S3 bucket.Enter the URL in the Amazon S3 URL field.ImportantIf your template includes nested stacks (for example, stacks described in other template documents located in subdirectories), ensure that your S3 bucket contains the necessary files and directories.If you have a template in a versioning-enabled bucket, you can specify a specific version of the template, such as https://s3.amazonaws.com/templates/myTemplate.template?versionId=123ab1cdeKdOW5IH4GAcYbEngcpTJTDW. For more information, see Managing objects in a versioning-enabled bucket in the Amazon Simple Storage Service Console User Guide.The URL must point to a template with a maximum size of 1 MB that is stored in an S3 bucket that you have read permissions to and that is located in the same region as the stack. The URL can be a maximum of 1024 characters long.Upload a template fileSelect a CloudFormation template on your local computer.Choose Choose File to select the template file that you want to upload. The template can be a maximum size of 1 MB. Once you have chosen your template, CloudFormation uploads the file and displays the S3 URL.If you use the CLI or API to create a stack, you can upload a template with a maximum size of 51,200 bytes.NoteIf you upload a local template file, AWS CloudFormation uploads it to an Amazon Simple Storage Service (Amazon S3) bucket in your AWS account. If you don't already have an S3 bucket that was created by AWS CloudFormation, it creates a unique bucket for each Region in which you upload a template file. If you already have an S3 bucket that was created by AWS CloudFormation in your AWS account, AWS CloudFormation adds the template to that bucket.Considerations to keep in mind about S3 buckets created by AWS CloudFormationThe buckets are accessible to anyone with Amazon S3 permissions in your AWS account.AWS CloudFormation creates the buckets with server-side encryption enabled by default, thereby encrypting all objects stored in the bucket.You can directly manage encryption options for buckets that AWS CloudFormation has created; for example, using the Amazon S3 console at https://console.aws.amazon.com/s3/ , or the AWS CLI. For more information, see Amazon S3 default encryption for S3 buckets in the Amazon Simple Storage Service Developer Guide.You can use your own bucket and manage its permissions by manually uploading templates to Amazon S3. When you create or update a stack, specify the Amazon S3 URL of a template file.Use a sample templateSelect a sample template from a collection of templates provided by CloudFormation to get you started. For descriptions of the templates, see Sample templates.To view more templates samples and snippets, organized by AWS service, click View more sample templates.Create template in DesignerCreate or modify a template using AWS CloudFormation Designer, a drag-and-drop interface for graphically diagramming your templates. For more information, see What is AWS CloudFormation Designer?.
- To accept your settings, choose Next, and proceed with specifying the stack name and parameters.Before creating resources, AWS CloudFormation validates your template to catch syntactic and some semantic errors, such as circular dependencies. During validation, AWS CloudFormation first checks if the template is valid JSON. If it isn't, AWS CloudFormation checks if the template is valid YAML. If both checks fail, AWS CloudFormation returns a template validation error.
Managing objects in a versioning-enabled bucket
https://console.aws.amazon.com/s3/
Amazon S3 default encryption for S3 buckets
Amazon Simple Storage Service Developer Guide
Sample templates
What is AWS CloudFormation Designer?
specifying the stack name and parameters