What is AWS CloudFormation?

What is AWS Cloudformation?

CloudFormation is a method of provisioning AWS infrastructure using code. It allows you to model a collection of related resources, both AWS and third party, to provision them quickly and consistently.

The major benefits of CloudFormation include:

Best Practice Automation

How much does CloudFormation cost?

CloudFormation is essentially free to use. You only pay for the API calls CloudFormation makes on your behalf and the resources you provision, which is no different than manually creating them.

What Resources can you provision with CloudFormation?

Basically any AWS resources you can create from the AWS console can be provisioned within a CloudFormation template. This includes things like

  • EC2 instances,
  • Amazon SQS queues
  • VPCs
  • Subnets
  • Route Tables
  • Gateways
  • Network ACLs
  • EC2 Security Groups
  • Autoscaling Groups
  • Elastic Load Balancers
  • RDS Database Instances
  • AWS RDS Security Groups in a VPC

What language are CloudFormation templates written in?

Templates are constructed of structured text. The declarations in your CloudFormation stack templates are written in JSON or YAML formats.

What is a CloudFormation Stack?

A stack is a collection of AWS resources provisioned by a template that you can manage as a single unit.

What is a CloudFormation StackSet?

A StackSet is a named set of stacks that use the same template that is used to provision resources across different accounts and regions. This enables a single operation to create, update or delete stacks across multiple regions and accounts.

How to Create CloudFormation Stacks from the AWS Console

To create a CloudFormation stack from the AWS console follow the steps below. In this example we’ll use a sample YAML template provided by AWS.

  • Ruby on Rails Stack (using a single EC2 instance and local MySQL)
  • Wordpress Blog (With local MySQL)
  • Wordpress Blog (Multi AZ with Amazon RDS database)
  • Windows Active Directory

Create Cloud Formation Stacks from the AWS CLI

If you have the AWS command line interface installed and configured, you can use the CLI to create a stack using the “create-stack” command.

Tech Writer, Developer, Marketer and Generator of Leads.