Cloud Formation is a service used to build your infrastructure(AWS resources) in an automated way with a script file across regions as well as for multiple accounts.
A Stack is a collection of AWS resources that you can manage as a single unit. In other words, you can create, update, or delete a collection of resources by creating, updating, or deleting stacks. All the resources in a stack are defined by the stack's AWS CloudFormation template.
You need to create a template that describes all the AWS resources that you want (like EC2 instances or Amazon RDS DB instances, S3 buckets), and AWS CloudFormation takes care of provisioning and configuring those resources for you.
You don't need to individually create and configure AWS resources and figure out what's dependent on what, AWS CloudFormation handles all of that.
You can write cloudFormation script in Json or YAML.
Points to be Remember
Benefits
When you use AWS CloudFormation, you can reuse your template to set up your resources consistently and repeatedly. Just describe your resources once and then provision the same resources over and over in multiple regions.
If you do it by ClodFormation and face any error in execution of new script it rollbacks and restores previous one.
You source control CloudFormation text files, so you have track of changes in the file and you can restore check any previous versions as well.
A Stack is a collection of AWS resources that you can manage as a single unit. In other words, you can create, update, or delete a collection of resources by creating, updating, or deleting stacks. All the resources in a stack are defined by the stack's AWS CloudFormation template.
You need to create a template that describes all the AWS resources that you want (like EC2 instances or Amazon RDS DB instances, S3 buckets), and AWS CloudFormation takes care of provisioning and configuring those resources for you.
You don't need to individually create and configure AWS resources and figure out what's dependent on what, AWS CloudFormation handles all of that.
You can write cloudFormation script in Json or YAML.
Points to be Remember
- By default automatic rollback feature is enabled.
- You are charged if errors occured while launching CloudFormation and its rollback.
- CloudFormation is free, you pay for resources you use like EC2, S3 buckets.
- Stacks can wait using "WaitCondition" for applications to be provisioned.
- Fn:GetAtt can be used to get output data like instance ip, ELB IP, S3 bucket name etc.
- Route53 supported for new as well as existing hosted zones.
- Aliases, 'A' record can be created (DNS settings)
- IAM creation an assignment supported
- Modelling Infrastructure
- Quickly Replicate the infrastructure
When you use AWS CloudFormation, you can reuse your template to set up your resources consistently and repeatedly. Just describe your resources once and then provision the same resources over and over in multiple regions.
- Easily Control and Track Changes to Your Infrastructure
If you do it by ClodFormation and face any error in execution of new script it rollbacks and restores previous one.
You source control CloudFormation text files, so you have track of changes in the file and you can restore check any previous versions as well.




No comments:
Post a Comment