AWS CloudFormation Master Class

Video description

AWS CloudFormation is the best way to write, deploy, and maintain your AWS infrastructure and supports most of the AWS services, and is the safest way to make your AWS infrastructure evolve over time. This course is an excellent course on AWS CloudFormation that covers almost everything.

The course starts with an introduction to AWS CloudFormation, explaining the advantages and high-level concepts of CloudFormation. Next, you will write your first AWS CloudFormation template in YAML to create an AWS S3 bucket. Moving along, you will become familiar with the CloudFormation parameters and resources, and learn how to use mapping to infer pre-defined values based on the AWS environment type. Next, you will work with outputs and conditions, and learn techniques to enhance the usability of the CloudFormation template using Metadata. Later, you will configure the resources and create re-usable pieces of code across the CloudFormation stacks. Towards the end, you will take a step ahead in CloudFormation by learning advanced concepts, such as troposphere and deletion policy.

By the end of this course, you will become well-versed with the concepts needed to write and launch productive CloudFormation templates using YAML.

What You Will Learn

  • Create, update, and delete an S3 bucket using CloudFormation
  • Discover how to read the CloudFormation documentation to use any resource
  • Find out how to work with CloudFormation mappings
  • Leverage metadata to bootstrap Amazon Elastic Compute Cloud (EC2) instances
  • Use CloudFormation nested stacks to create re-usable pieces of code
  • Use troposphere to generate CloudFormation files using Python


Whether you are a DevOps engineer, a developer, or a solution architect, who wants to deploy and orchestrate CloudFormation templates, this course is for you. Basic knowledge of Amazon Web Services (AWS), JavaScript Object Notation (JSON), and YAML Ain't Markup Language (YAML) is needed to get started with this course.

About The Author

Stéphane Maarek: Stéphane Maarek is a solutions architect, consultant, and software developer who has a particular interest in all things related to big data and analytics. He is also a bestseller instructor on Udemy for his courses on Apache Kafka, Apache NiFi, and AWS Lambda. He loves Apache Kafka and regularly contributes to the Apache Kafka project.

Stéphane has also written a guest blog post that was featured on the Confluent website, the company behind Apache Kafka. He is also an AWS Certified Solutions Architect and has many years of experience with technologies such as Apache Kafka, Apache NiFi, Apache Spark, Hadoop, PostgreSQL, Tableau, Spotfire, Docker, Ansible, and more.

Table of contents

  1. Chapter 1 : AWS CloudFormation Introduction
    1. Course Introduction
    2. About your Instructor
    3. What is CloudFormation?
    4. Benefits of CloudFormation
    5. Course Disclaimer and Cost
    6. CloudFormation versus Ansible and Terraform
    7. First AWS CloudFormation Template
    8. Summary of How CloudFormation Works
  2. Chapter 2 : CloudFormation First Hands-On
    1. YAML Tutorial
    2. Creating an S3 Bucket Using CloudFormation
    3. Updating an S3 Bucket Using CloudFormation
    4. Deleting an S3 Bucket Using CloudFormation
    5. CloudFormation Template Options
    6. Using CloudFormation Designer
    7. CloudFormation Building Blocks
    8. Deploying CloudFormation Templates
  3. Chapter 3 : CloudFormation Parameters
    1. Parameters Overview
    2. Parameters Theory and Hands-On
    3. How to Reference a Parameter?
  4. Chapter 4 : CloudFormation Resources
    1. Resources Overview
    2. Resources Hands-On
    3. Optional Attributes for Resources
    4. Resources FAQs
  5. Chapter 5 : CloudFormation Mappings
    1. Mappings Overview
    2. Function FindInMap (Accessing Mapping Values)
    3. Mappings Hands-On
    4. Pseudo Parameters in CloudFormation
  6. Chapter 6 : CloudFormation Outputs
    1. Outputs Overview
    2. Outputs Hands-On
    3. Cross Stack Reference Hands-On
  7. Chapter 7 : CloudFormation Conditions
    1. Conditions Overview
    2. Conditions Hands-On
    3. Conditions Functions
    4. Function GetAtt (Get Attribute Function)
  8. Chapter 8 : CloudFormation Metadata
    1. Metadata Overview
    2. AWS: CloudFormation: Designer Hands-On
    3. AWS: CloudFormation: Interface Hands-On
  9. Chapter 9 : Cfn-Init and EC2 User Data
    1. EC2 User Data Overview
    2. CloudFormation EC2 User Data
    3. CloudFormation Init Overview
    4. Packages
    5. Groups and Users
    6. Sources
    7. Files
    8. Function: Sub (Substitute Function)
    9. Commands
    10. Services
    11. Cfn-Init and Signal
    12. CFN Init Hands-On
    13. Section Summary
  10. Chapter 10 : CloudFormation Drift
    1. CloudFormation Drift
  11. Chapter 11 : CloudFormation Nested Stacks
    1. Nested Stacks Overview
    2. Updating Nested Stacks
    3. Deleting Nested Stacks
    4. Closing Comments on Nested Stacks
  12. Chapter 12 : Advanced Concepts
    1. Knowledge Review
    2. Using the AWS Command Line Interface (CLI)
    3. Troposphere (Python) to Generate CloudFormation Templates
    4. Former2 to Generate CloudFormation Templates
    5. Deletion Policy
    6. Custom Resources with AWS Lambda
    7. Best Practices for CloudFormation
    8. Cost Estimate for Your Templates
    9. Next Steps
    10. Congratulations!

Product information

  • Title: AWS CloudFormation Master Class
  • Author(s): Stephane Maarek
  • Release date: May 2018
  • Publisher(s): Packt Publishing
  • ISBN: 9781789343694