CPSC 4820 - DAY 11 MARCH 6, 2018 ================================================================================ Benefits of Treating Infrastructure as Code ------------------------------------------- Maintainability, Consistency and Parallelization. Seven Parts of a CloudFormation Template -Description -Metadata -Parameters -Mappings -Conditions -Resources -Outputs A DependsOn Attribute is required in some cases. Some resources that depend on a VPC gateway include: -Auto Scaling group -Amazon EC2 instances -Elastic Load Balancing load balancers -Elastic IP address -Amazon RDS database instances -Amazon VPC routes that include the internet gateway. WaitConditions are special resources that pause the creation of the stack and wait for a signal before it continues. Using Creation Policies in a Template -Pause the creation of the stack and wait for a specified number of success signals before it continues. Cloud Formation Template Mappings example can specify multiple levels of conditions. Conditions specify optional statements to happen based on results of multiple conditions. -Examples include {"Fn::Equals" : [{"Ref" : "EnvType"}, "Prod"]}