by cyberferret · 10y ago · 0 comments
Not just EC2 here, I am talking about RDS, Elastic Beanstalk, Route 53, CloudFront, DynamoDB, the works. Would be nice if we could define 'stacks' for each web app and have the on one neat console to work with.
(I know there is the concept of 'Resource Groups', but that relies on tagging assets, and I don't believe tagging extends across all the AWS assets at this stage? I would love for someone to correct me on my assumptions.)
At first blush it might seem to have a high learning curve given the verbosity of the syntax to define a stack, but with the launch YAML support, the syntax has become more succinct. Once you use it, you'll wonder how you ever lived without it.
The product page doesn't do it justice, but in short, CloudFormation allows you to:
- Describe the AWS resources you need in a single file (YAML or JSON), this would be your "stack".
- View all the resources provisioned based on your code in a single UI grouped under the "stack" in the CloudFormation console.
- Manage changes to your resources as different versions of the code file, meaning if you update a resource's properties in code, it'll know and update the already provisioned resource.
- You can delete an entire "stack" and be certain that all associated resources are also destroyed.
- When I used it, the coverage of types of resources you can code for was wide and they're continuously adding more.
I recommend trying it out by setting up a simple S3 hosted website using this template http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuid...
If you're trying to remain cloud-agnostic, then I suggest you also checkout HashiCorp's Terraform [https://www.terraform.io/]. Think of Terraform as a scripting language that compiles into AWS CloudFormation or any other cloud provider.
Create an account per stack, switch role from your user account into the stack account to do any management.
The existing consolidated billing works pretty well, it's just the initial per-account setup of billing and roles that's been a headache before