AWS CloudFormation
User Guide (API Version 2010-05-15)
Did this page help you?  Yes | No |  Tell us about it...
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.

Working with AWS CloudFormation Templates

The key to getting the most out of AWS CloudFormation is a thorough understanding of templates. A template is a text file whose format complies with the JSON standard.

To get you started quickly on modifying and authoring templates, this section provides template anatomy details, example templates and template snippets. This section also discusses how to modify and validate templates.

  • In Template Anatomy, we provide the technical details for coding each of the template objects.

  • In Template Snippets, we provide a number of template sections that demonstrate how to write the JSON code for a particular section of a template. In this section you'll find starter snippets for Amazon EC2 instances, Amazon S3 domains, AWS CloudFormation mappings, and more. The snippets are selected to cover a range of resources and properties you are likely to include often in your templates. They are grouped by the resources they would be used to declare, with general-purpose AWS CloudFormation snippets in General Template Snippets).

  • The section Example Templates contains a number of sample templates that will create stacks with little or no modification. The samples range in complexity, and highlight the use of AWS CloudFormation template features in the context of a complete application. Some of the templates require you to specify values in the command's --parameters option.

For details about the supported resources, type names, intrinsic functions, and pseudo parameters you can use in your templates, see the Template Reference section.