- AWS CloudFormation set up the AWS resources as per user’s requirements.
- It automatically provision and configure the selected resources.
- It enables users to use a template file to create and delete a collection of resources together as a single unit (a stack).
- AWS CloudFormation is a service that helps to model and set up Amazon Web Services resources.
- It help users by reducing their time that spend on managing AWS resources and provide more time to focus on their applications that run in AWS.
The features of AWS CloudFormation are
- Simplify Infrastructure Management
- Quickly replicate the users infrastructure
- Easily control and track changes to users infrastructure
AWS CloudFormation Concept
Concept of AWS CloudFormation are
- Change Sets
An AWS CloudFormation template is a JSON or YAML formatted text file.
Save these files with any extension, such as .json, .yaml, .template, or .txt.
Using AWS CloudFormation, resources can be managed as a single unit called a stack.
Users can create, update, and delete a collection of resources by creating, updating, and deleting stacks.
Change set is generated as a summary of the proposed changes, which is made by users to their resources.
Change sets allow users to see how the changes might impact their running resources, especially for critical resources, before implementing them.
AWS CloudFormation Working
When users create a stack, AWS CloudFormation makes underlying service calls to AWS to provision and configure these resources.
AWS CloudFormation can perform only actions that is defined by users.
Users use AWS Identity and Access Management (IAM) to manage permissions.
Updating a Stack with change set
- When there is need to update the stack’s resources, then modify the stack’s template.
- Their is no need to create a new stack and delete the old one.
Deleting a Stack
- When user delete a stack, AWS CloudFormation deletes the stack as well as the associated resources with that stack.
- Stacks can be deleted using the AWS CloudFormation console, API, or AWS CLI.