Table of Contents

  1. AWS CloudFormation Overview
  2. Key Benefits
  3. Key Concepts
  4. Templates
    1. Template Elements
    2. Resources (Mandatory)
    3. Parameters
    4. Pseudo Parameters
    5. Mappings
    6. Outputs
    7. Conditions
    8. Transform
  5. Intrinsic Functions (Crucial for Exam!)
  6. Stacks and Stack Sets
    1. Stacks
    2. Stack Sets
    3. Nested Stacks
  7. CloudFormation Helper Scripts
    1. cfn-init
    2. cfn-signal
  8. CloudFormation Resource Attributes
    1. CreationPolicy
    2. DeletionPolicy
    3. DependsOn
    4. WaitCondition
    5. UpdatePolicy
    6. UpdateReplacePolicy
  9. Troubleshooting Errors
  10. Monitoring and Reporting
  11. Authorization and Access Control
  12. Charges
  13. Best Practices
  14. Serverless Application Model (SAM)
  15. Important Exam Tips & Tricks

AWS CloudFormation Overview

CloudFormation Elastic Beanstalk
"Template-driven provisioning" "Web apps made easy"
Deploys infrastructure using code Deploys applications on EC2 (PaaS)
Can be used to deploy almost any AWS service Deploys web applications based on Java, .NET, PHP, Node.js, Python, Ruby, Go, and Docker
Uses JSON or YAML template files Uses ZIP or WAR files
Similar to Terraform Similar to Google App Engine

Key Benefits


Key Concepts

Component Description
Templates JSON or YAML text file containing instructions for building out the AWS environment.
Stacks The entire environment described by the template; created, updated, and deleted as a single unit.
StackSets Extends stacks to create, update, or delete stacks across multiple accounts and regions with a single operation.
Change Sets A summary of proposed changes to your stack; allows previewing impact before implementation.

Templates

Template Elements (Sections)

Resources (Mandatory)

Parameters

Pseudo Parameters

Mappings

Outputs

Conditions

Transform


Intrinsic Functions (Crucial for Exam!)


Stacks and Stack Sets

Stacks

Stack Sets

Nested Stacks


CloudFormation Helper Scripts

cfn-init

cfn-signal


CloudFormation Resource Attributes

CreationPolicy attribute

DeletionPolicy attribute

DependsOn attribute

WaitCondition

UpdatePolicy attribute (WaitOnResourceSignals)

UpdateReplacePolicy attribute


Troubleshooting Errors


Monitoring and Reporting


Authorization and Access Control


Charges


Best Practices


Serverless Application Model (SAM)


Important Exam Tips & Tricks