Chapter 6

Configuration Management of the EC2 Instances Using cfn-init

There are multiple ways to manage the configuration of your EC2 instances and applications on AWS. There is  user-data, a basic shell script that runs during the launch of an EC2 instance. You can use configuration management systems, such as Ansible, Puppet, Chef, and SaltStack, to manage your resources. AWS provides a service called OpsWorks—a managed Chef or Puppet server.

We are going to learn about cfn-init (CloudFormation's own configuration management tool) and how can we use it to deploy applications on EC2 resources. We are going to cover cfn-init along with AWS::CloudFormation:Init, CloudFormation's metadata key, which actually declares configuration items for EC2 ...

Get Mastering AWS CloudFormation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.