AWS Cloud Formation best practices



WeDoIT is Cloud solutions & consulting company founded by cloud experts. As part of give back (or) knowledge sharing with community, our team has started creating these tutorials/cloud topic summaries.   Check out cloud our computing cost optimizer tool INVOKE to save cloud hosting costs by 50 to 80%.


  1. If template file is stored in your local computer, and create/update stack using this file, then CloudFormation service creates a bucket for each region in which you are creating the template file and uploads file to this S3 bucket in your AWS account. If bucket with the name already exists, CloudFormation simply updates file to that bucket. This bucket is accessible for every user in your account with S3 permissions.
  2. CloudFormation can perform only actions that you have permission to perform. For example, to create EC2 instances by using CloudFormation, you need IAM permissions to create instances otherwise CloudFormation will fail to create resources and fails in stack creation. So, the AWS users who are performing CloudFormation operations should also have other permissions (depending the resources described in template)
  3. Maximum number of parameters you can declare in a template are 60 parameters. To specify more, you can use mappings or lists.
  4. Maximum number of resources that you can declare in template are 200. To specify more, separate template into multiple templates and use “nested stacks” approach.
  5. Maximum number of stacks per account are 200.
  6. Before launching stack, make sure you didn’t exceed quotas for the resources you have described in templates.
  7. Do not embed credentials in your template, always parameterize them
  8. Update your EC2 instances regularly right after you launch them using yum update

If you are looking for any help with migrating your solutions to cloud providers like AWS, Azure, Google (or) looking for cloud solutions architecture assistance, we are happy to talk to you to address your needs. Click  here to contact us.

Comments

Popular posts from this blog

AWS Stop Vs Terminate Vs Reboot

How to Configure DNS with Route 53 and GoDaddy

INVOKE Cloud recognized as a Rising Star for IT Management Software by FinancesOnline Directory