Introducing CloudFormation
- It is a service to model and set up your Amazon Web Services resources
- Spend less time managing those resources
- More time focusing on your applications that run in AWS.
- Create a template that describes all the AWS resources that you want (like Amazon EC2 instances or RDS)
- CloudFormation takes care of provisioning and configuring those resources for you.
- Use a simple text file to model and provision, in an automated and secure manner, all the resources needed for your applications across all regions and accounts.
- This file serves as the single source of truth for your cloud environment.
- Available at no additional charge, and you pay only for the AWS resources needed to run your applications.
AWS CloudFormation Working
- Design an AWS CloudFormation template (a JSON or YAML-formatted document) in AWS CloudFormation Designer or write one in a text editor or choose to use a provided template. The template describes the resources you want and their settings.
- Save the template locally or in an S3 bucket. If you created a template, save it with any file extension like .json, .yaml, or .txt.
- Create an AWS CloudFormation stack by specifying the location of your template file , such as a path on your local computer or an Amazon S3 URL.
- If the template contains parameters, you can specify input values when you create the stack. Parameters enable you to pass in values to your template so that you can customize your resources each time you create a stack.