aws cloudformation user guide

Download AWS Cloudformation User Guide

Post on 22-Jun-2015

517 views

Category:

Documents

20 download

Embed Size (px)

TRANSCRIPT

AWS CloudFormationUser GuideAPI Version 2010-05-15Amazon Web ServicesAWS CloudFormation User GuideAWS CloudFormation: User GuideAmazon Web ServicesCopyright 2014 Amazon Web Services, Inc. and/or its affiliates. All rights reserved.The following are trademarks of Amazon Web Services, Inc.: Amazon, Amazon Web Services Design, AWS, Amazon CloudFront,Cloudfront, Amazon DevPay, DynamoDB, ElastiCache, Amazon EC2, Amazon Elastic Compute Cloud, Amazon Glacier, Kindle, KindleFire, AWS Marketplace Design, Mechanical Turk, Amazon Redshift, Amazon Route 53, Amazon S3, Amazon VPC. In addition,Amazon.com graphics, logos, page headers, button icons, scripts, and service names are trademarks, or trade dress of Amazon inthe U.S. and/or other countries. Amazon's trademarks and trade dress may not be used in connection with any product or service thatis not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discreditsAmazon.All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connectedto, or sponsored by Amazon.AWS CloudFormation User GuideWelcome ................................................................................................................................................. 1Introduction ............................................................................................................................................. 2Stacks ..................................................................................................................................................... 2Templates ............................................................................................................................................... 3Parameters ............................................................................................................................................. 5Mappings ................................................................................................................................................ 6Conditions ............................................................................................................................................... 7Pseudo Parameters ................................................................................................................................ 8Resources ............................................................................................................................................... 8Resource Properties ............................................................................................................................... 9References ........................................................................................................................................... 10Intrinsic Functions ................................................................................................................................. 10Outputs ................................................................................................................................................. 11Getting Started ..................................................................................................................................... 12Signing Up for an AWS Account ........................................................................................................... 12Get Started ........................................................................................................................................... 12Learn Template Basics ......................................................................................................................... 20Walkthrough: Updating a Stack ............................................................................................................. 30Walkthrough: Custom Resources ......................................................................................................... 48Using CloudFormer to Create Templates .............................................................................................. 54Controlling Access with IAM ................................................................................................................. 62Stack Updates ...................................................................................................................................... 67Modifying a Stack Template .................................................................................................................. 68Updating a Stack .................................................................................................................................. 70MonitoringProgress ............................................................................................................................. 72Canceling a Stack Update .................................................................................................................... 74Prevent Updates to Stack Resources ................................................................................................... 75Using the Console ................................................................................................................................ 85Logging In to the Console ..................................................................................................................... 85Creating a Stack ................................................................................................................................... 87Selecting a Stack Template ......................................................................................................... 88Specifying Stack Parameters ...................................................................................................... 88Setting Stack Options .................................................................................................................. 89Reviewing Your Stack and Estimating Stack Cost ....................................................................... 90Creating an EC2 Key Pair ..................................................................................................................... 90Estimating the Cost of Your Stack ......................................................................................................... 91Viewing Stack Data and Resources ..................................................................................................... 91Updating a Stack .................................................................................................................................. 92Selecting a Stack Template for Updating a Stack ........................................................................ 93Specifying Stack Parameters and Update Policy ........................................................................ 94Canceling a Stack Update ........................................................................................................... 94Deleting a Stack .................................................................................................................................... 95Viewing Deleted Stacks ........................................................................................................................ 96Using the AWS CLI ............................................................................................................................... 97Describing and Listing Your Stacks ....................................................................................................... 97Viewing Stack Event History ............................................................................................................... 100Listing Resources ............................................................................................................................... 102Retrieving a Template ......................................................................................................................... 103Validating a Template .......................................................................................................................... 104Working With Templates ..................................................................................................................... 106Template Anatomy .............................................................................................................................. 107Template Declaration ................................................................................................................. 107Template Format Version Declaration ........................................................................................ 108Template Description Declaration .............................................................................................. 108Parameters Declaration ............................................................................................................. 108Mappings Declaration ................................................................................................................ 111Conditions Declaration .............................................................................................................. 114Resources Declaration .............................................................................................................. 116API Version 2010-05-154AWS CloudFormation User GuideProperties Declaration ............................................................................................................... 116Function Declaration ................................................................................................................. 117Outputs Declaration ................................................................................................................... 11

Recommended

View more >