
Explore AWS CloudFormation concepts through hands-on YAML templates, practice infrastructure as code, and navigate wide and deep content with optional advanced lectures for developers, DevOps, and solutions architects.
Explore CloudFormation's declarative approach to infrastructure as code, outlining resources such as security groups, EC2, Elastic IPs, S3 buckets, and a load balancer, and discover reusable templates and cost awareness.
Meet instructor Stephane Maarek, an expert in AWS certifications and Apache Kafka, who motivates you to set goals, engage with him on LinkedIn or Instagram, and finish this course.
Learn to set up VS Code for AWS CloudFormation using the CloudFormation Linter extension, fcl-lint, and pydot for graph previews, then install cfn-lint with pip to validate templates.
Begin with CloudFormation by deploying a simple EC2 instance in us-east-1a, attach a security group for ports 80 and 22, and manage templates and stacks.
Upload templates to Amazon S3 and reference them in CloudFormation. Create stacks that provision AWS resources; update by re-uploading templates; stacks are region-unique and deleting a stack removes artifacts.
Discover why YAML outshines JSON for CloudFormation templates, and learn YAML basics—key-value pairs, nested objects, arrays, multi-line strings, and comments—through converting JSON to YAML and hands-on practice.
Practice CloudFormation by creating an S3 bucket with a simple template, deploy it as a stack, and review create events and the resulting bucket in the console.
Explore how CloudFormation updates S3 buckets with no interruption, some interruption, or replacements, by applying access control changes and bucket name changes via change sets.
Know that you cannot delete a non-empty S3 bucket; First delete all objects. Then CloudFormation deletes the bucket and the stack; monitor delete in progress and status reasons to debug.
Explore how CloudFormation template options like tags, permissions, notification options, timeout, rollback on failure, rollback configuration, stack policy, and termination protection govern stack creation in the console.
Design applications quickly on AWS using the application composer and drag-and-drop resources to transform templates into visual CloudFormation components. Import existing templates and visualize linked stacks.
Explore cloud formation's building blocks—templates, resources, parameters, mappings, outputs, conditionals, and rules—with hands-on lessons on template format version, metadata, references, and functions.
Deploy CloudFormation templates from manual authoring to automated production workflows using yaml, aws cli, or continuous delivery tools.
Learn to estimate costs for CloudFormation templates by building a demo stack and using the AWS Pricing Calculator to see how an m5.4xlarge EC2 instance affects the monthly bill.
Learn to leverage parameters to customize CloudFormation templates, define types and constraints, fetch parameters from the parameter store, and reference values with Fn::Ref to tailor stacks.
Explore how to define and constrain CloudFormation parameters, including string and number types, NoEcho secrets, AWS-specific types, CIDR patterns, and referencing with Ref and Select.
Explore how to use the SSM parameter type with CloudFormation to fetch parameter store values, including the latest ami id, and understand supported types and validation.
Learn to reference SSM parameter store values in CloudFormation templates, using a private instance type parameter and a public image ID parameter.
Discover how resources drive CloudFormation templates, define dependencies with ref, and let AWS manage the create, update, and delete order from rich documentation and YAML or JSON examples.
Explore a hands-on CloudFormation resources template linking an EC2 instance, Elastic IP, and security groups with Ref and SecurityGroupIngress, and learn the deployment order.
Explore optional attributes for resources, including dependsOn, deletionPolicy, updateReplacePolicy, creationPolicy, updatePolicy, and metadata for Cfn init and stack updates.
Understand how the DependsOn attribute enforces creation order between an EC2 instance and an S3 bucket, with deletion order reversed, shown in a hands-on DependsOn.yaml example.
Explore deletion policies in CloudFormation by using DeletionPolicy values like Retain and Snapshots, with Delete as the default, including how a S3 bucket survives deletion and UpdateReplacePolicy protects resources.
Explore how UpdateReplacePolicy governs resource replacement during stack updates, compare it with DeletionPolicy, and learn to retain old resources using examples with S3 buckets and snapshots.
Explore the resources FAQ: learn to create a dynamic number of resources with CloudFormation macros and transforms, note that most services are supported, and use custom resources for new features.
Discover mappings as fixed variables in CloudFormation to differentiate environments and regions, including region-specific AMI IDs via a RegionMap, and compare mappings with parameters to know when to use each.
Learn how to use the Fn::FindInMap function to access region map values in a CloudFormation template, returning the correct ami id for the current region and architecture.
Learn to implement CloudFormation mappings to deduce EC2 instance types from environment and select region-specific AMIs, using parameterization and FindInMap in hands-on templates.
Explore pseudo parameters in CloudFormation templates, including account id, region, stack id, stack name, notifications arn, no value, partition, and url suffix, to construct ARNs and resource names.
Expose and reuse cloud formation outputs by exporting values from a network stack and referencing them in an application stack, enabling VPC IDs and subnet IDs to flow across stacks.
Practice outputs hands-on by creating an EC2 security group with inbound rules that follow best practices, then expose the group via a CloudFormation output export and reference it using Ref.
Explore cross stack references in CloudFormation by using the ImportValue function to attach an exported SSH security group to an EC2 instance, and understand how dependent stacks prevent deletion.
Discover AWS CloudFormation conditions to selectively create EC2 instances and attach EBS volumes in a shared template based on environment such as dev or prod, using equals and logical functions.
Learn how to use the Fn::GetAtt get attribute function to reference a resource attribute, such as EC2Instance.AvailabilityZone, to place an EBS volume in the same availability zone.
Learn how AWS CloudFormation uses parameters and conditions to conditionally create an EC2 volume and mount point, with prod and test deployment and change sets.
Use CloudFormation rules for cross-parameter validation with a rule condition and assertion, e.g., require an ACM certificate ARN when UseSSL is yes for an SSL listener.
Learn hands-on CloudFormation rules that enforce environment-based instance types, with prod requiring t2 small and dev allowing t2 nano or micro, and cross-perimeter validation, plus two rule-writing approaches.
[June 2021 Update - AWS CloudFormation Master Class v2]: the ENTIRE course has been re-recorded, and new sections and features have been added, to cover every CloudFormation feature.
[March 2019 Update]: Added two sections on Drift and Nested Stacks
-- -- -- -- -- -- --
AWS CloudFormation is the best way to write, deploy and maintain your AWS Infrastructure. It helps you create efficient solution architectures, all self-contained in one file. It supports most of the AWS Services and is the safest way to make your AWS Infrastructure evolve over time.
Thanks to YAML, writing AWS CloudFormation Templates has become extremely easy and natural. AWS CloudFormation is powerful and supports Parameters, Mappings, Resources, References, Cross-Stack References, Conditions, Outputs, Metadata, and so much more!
In this course AWS CloudFormation Master Class, I will teach you about all the CloudFormation features. In just a few hours, you will know everything about CloudFormation and seamlessly deploy your infrastructure in no time.
Take a look at these student reviews..
★★★★★ "An excellent course on AWS CloudFormation. It covers everything, but this is definitely not for AWS Beginners. You need to know the fundamentals of AWS if you want to really get something out of it. It is very worthwhile for AWS System Architects, AWS Developers, and SysOps/DevOps professionals. I hold two AWS associate certifications and enjoyed this course." – Gerry H.
★★★★★ "I really enjoyed the course. I spent a day or two going through the overwhelming sea of official documentation before landing on this video. Like the instructor says in the introduction, you need to have knowledge of most of the popular AWS services like EC2, security groups, key-pair, floating ips, volumes, AWS Billing, etc. before watching this as he doesn't waste any time explaining about those services. A slight knowledge of JSON or YAML is really helpful." – Purmode R.
-- -- -- -- -- -- --
AWS CloudFormation Master Class is the easiest way to start learning AWS CloudFormation:
> Learn CloudFormation and master all its concepts
> Go through Hands-On examples to practice what we learned
> Learn how to use YAML to write the CloudFormation Templates
> Learn how to write your infrastructure as code
> Keep all the course material as a reference for your future templates!
> Learn each CloudFormation building blocks in-depth: Parameters, Mappings, Resources, Outputs, Conditions, Metadata
> Learn about CloudFormation Init, the most powerful way to bootstrap your EC2 instances
> Advanced CloudFormation features Drift, Nested Stacks, etc.
> So much more!
Note: This course assumes you know how to use the AWS Cloud. It will help you transform your solution architecting skills into CloudFormation templates.
-- -- -- -- -- -- --
Instructor
My name is Stephane Maarek, and I'll be your instructor in this course. I teach about AWS certifications with my focus always on helping my students improve their professional proficiencies in AWS. I am also the author of some of the most highly-rated & best-selling courses on AWS Lambda, AWS CloudFormation & AWS EC2.
Throughout my career in designing and delivering these certifications and courses, I have already taught 2,000,000+ students and gotten 350,000+ reviews!
With AWS becoming much more than a buzzword out there, I've decided it's time for students to properly learn how to write complete AWS CloudFormation Templates using YAML. So, let’s kick start the course! You are in good hands!
-- -- -- -- -- -- --
This course also comes with:
Lifetime access to all future updates
A responsive instructor in the Q&A Section
Udemy Certificate of Completion Ready for Download
A 30 Day "No Questions Asked" Money Back Guarantee!
Join me in this course if you want to learn about all the latest features of Cloud Formation and master the AWS platform!