1. Home
  2. Training Library
  3. Amazon Web Services
  4. Courses
  5. How to Use CloudFormation for AWS Automation

What is CloudFormation?

The course is part of these learning paths

DevOps Engineer – Professional Certification Preparation for AWS
course-steps 35 certification 5 lab-steps 18 quiz-steps 2 description 3
SysOps Administrator – Associate Certification Preparation for AWS
course-steps 34 certification 5 lab-steps 30 quiz-steps 4 description 5
AWS Cloud Management Tools
course-steps 5 certification 1 lab-steps 5 quiz-steps 2
play-arrow
What is CloudFormation?
Overview
Transcript
DifficultyIntermediate
Duration21m
Students3557
Ratings
4.6/5
star star star star star-half

Description

Modern IT infrastructures can be quite complex and are usually built from many distinct components: computing instances, load balancers, storage volumes, CDNs, caching nodes, one or more database clusters, etc. You need to setup each component specifically for the environment that you are using (like production, staging, development, etc.), to keep them updated and to remove or swap components due to software changes. CloudFormation is a great tool that helps system administrators by managing these details automatically.

In this course, CloudAcademy's Senior Devops Engineer, Antonio Angelino, will discuss how AWS CloudFormation works and how you can use it to build scalable infrastructures. AWS CloudFormation allows you to easily create sets of cloud resources such as Amazon EC2 instances, CloudFront distributions, RDS database instances and other services by just writing a template file.

Who should take this course

This course is on the intermediate level, so you should have some experience with AWS and its basic services like EC2, ELB, AutoScaling, and RDS. Also, some knowledge of Highly Availability concepts, the JSON file format, and Wordpress can be helpful to understand the ideas behind the practical part of the course and the template's syntax.

If you need to learn more about the AWS services cited here, please check our collection of AWS courses, in particular the courses about EC2 and RDS. Also, if you want to test your knowledge on the basic topics covered in this course, check out our AWS questions.

About the Author

Students35568
Labs11
Courses4

Antonio is an IT Manager and a software and infrastructure Engineer with 15 years of experience in designing, implementing and deploying complex webapps.

He has a deep knowledge of the IEEE Software and Systems Engineering Standards and of several programming languages (Python, PHP, Java, Scala, JS).

Antonio has also been using and designing cloud infrastructures for five years, using both public and private cloud services (Amazon Web Services, Google Cloud Platform, Azure, Openstack and Vmware vSphere).

During his past working experiences, he designed and managed large web clusters, also developing a service orchestrator for providing automatic scaling, self-healing and a Disaster Recovery Strategy.

Antonio is currently the Labs Product Manager and a Senior DevOps Engineer at Cloud Academy; his main goal is providing the best learn-by-doing experience possible taking care of the Cloud Academy Labs platform.

Hello, and welcome to the first course about AWS Automation. During this course you'll learn how AWS CloudFormation works, and how you can use it for building scalable infrastructures. AWS CloudFormation gives you an easy way to create a set of cloud resources, such as Amazon EC2 instances, CloudFront distributions, RDS database instances, and other services. A template file describes what resources you need, and AWS CloudFormation takes care of provisioning the resources in an orderly and predictable fashion, handling and recovering from any failures or issues.

Amazon is updating their list of AWS supported resources and operations monthly. And right now, the following services are fully or partially supported, EC2, VPC, ELB Elastic Load Balancing, Auto-scaling, Route 53, S3, CloudFront, RDS, DynamoDB, SimpleDB, RedShift, Elastic Cash, SNS or Simple Notification Service, SQS or Simple Queue Service, CloudFormation, CloudWatch, Elastic Beanstalk, OpsWorks, IAM, and Kinesis. As you can see, the list includes CloudFormation itself. It's possible to create stackable templates, in order to simplify template maintenance and update.

Thanks to AWS CloudFormation, you can describe your IT infrastructure and deploy it any time you need, creating different environments, for example testing, staging, production, etc in a few minutes.

Using file or code versioning tools like Git or SVN, you can keep track of each infrastructure modification, linking your infrastructure model to the application ecosystem itself. AWS CloudFormation uses the word stack in order to identify a specific infrastructure. That merely is a collection of well configured AWS resources. Each CloudFormation stack has a unique name, and a linked template with a specific configuration. When you create a new stack, you can keep track of the infrastructure deployment, delete it, or check it's live status and collected logs.

It's important to keep in mind that CloudFormation checks if each stack resource is properly created and configured. If a resource cannot be created, CloudFormation rolls back and destroys all created resources.