Has anyone set up any kind if automation for EC2 builds? Simply standing them up with the right disks, network, and CPU and memory? I use vRealize for VMware automation and I was hoping to tie AWS in.
Related discussions:
Has anyone set up any kind if automation for EC2 builds? Simply standing them up with the right disks, network, and CPU and memory? I use vRealize for VMware automation and I was hoping to tie AWS in.
Related discussions:
CloudFormation? There are literally hundreds of ways of automating this. You can also use the AWS CLI, SDK, and Powershell tools.
I use cloudformation, it’s all documented at https://aws.amazon.com/cloudformation/ . It does mean you have to understand AWS resources and be willing to write JSON.
There is also terraform which sets up infrastructure not just on AWS but on many other clouds too.
If you like chef there is AWS opsworks too. I’ve never used it mostly because I’m no chef fan. It not only sets up the machines but configures the software on them.
Or if your requirements are really simple you can use the console or command line tools to manually set up things. That’s definitely not the recommended way to set up anything non-trivial. For just a few machines it works fine.
I never touched vRealize.
EDIT: Fixed spelling
We’ve used HP Operations Orchestration a few years, primarily automating VMware activities like builds. It has some pretty good built in operations for AWS as well, and I’m currently building out our automation for that.
Though frankly, if we were a smaller shop you could get by with just awscli in scripts or the Powershell tools. I love how easily automatable aws is.
It’s hard for vRealize (or any other provisioning tool) to play nice with AWS because of Autoscaling. What you created initially isn’t permanent by design.
I agree with others on CFN. I found CFN templates to be a bit cumbersome and slightly picky, but once you get them down most subsequent edits are easy to make. I also recommend against the AWS UI builder for these. Take a text file and upload it directly. Here’s my workflow
You can do most of what CFN does by writing your own tool/scripts that make use of aws cli/api. But what a long and tedious nightmare that would be. You’ll get much further quicker using CFN.
Holy crap I didn’t think I’d ever find another person using OO…
vRealize for VMware only really deals with EC2 instances. If you want something more, you’d probably have to write your own custom blueprints.
You can use Service Catalog, and tie that to a service account that vRealize can utilize I’d think, but you’d have to pre-define your portfolios and products beforehand and those use Cloudformation anyways.
Lol. No kidding. We chose obscure stuff just a few years ago, HPSA included. OO is admittedly pretty cool though, at least development wise.
You can either make Cloudformation templates or look into writing Ansible playbooks, there are a lot of modules in the core to handle just about everything in AWS.
Have you managed to wrap any kinda of CI/CD around it? When I was doing flows in it everything was just SO. MANY. CLICKS. And the deployment process was… gross.
Terraform so you don’t have to deal with messy CFN json! The syntax is much more succinct and easier to read.
Another feature that I really like is you can see a preview of what changes will actually happen before applying the modified configuration which is really handy.
I use ansible playbooks to deploy everything at my organization, it is incredibly powerful, especially combined with other products such as jenkins, and much more. If you would like me to elaborate on any of this, please let me know.
CloudFormation is a pain in the ass but it’s the AWS-prescribed method. Obviously it integrates with AWS the best, so it supports pretty much everything AWS has to offer.
Terraform is my preferred method, but as it’s a third-party product, it doesn’t necessarily support every bit of AWS, so if you want to use an AWS product and Terraform doesn’t support it, you’re outta luck.
The annoying thing is CloudFormation doesn’t support everything AWS offer. There always seems to be a 6 month or so lag between a new service arriving and CloudFormation supporting it. It doesn’t support the elasticsearch service right now for example.
I’m a heavy CF user but one of the things that makes me want to try terraform is that it supports new AWS services sooner than CF. Also it’s faster. There are annoying delays in CF. 2 Minutes before doing anything, sometimes huge delays adding records to route53.
EDIT: Fixed spelling
Terraform, from Hashicorp.
Unless I just haven’t heard of Terrorform…things move fast in these parts.
Lol. Yes terraform, I have rubbish spelling.
Come to devopschat.co and go to the questions or AWS channel. I promise you’ll have a good answer by the time you’re done. But a whole bunch more questions.
Like almost everyone else has said CloudFormation (aka. CFN) is probably the best way to automate things in AWS, but does have the caveats that 1) it’s all JSON (which I don’t mind, but some do) and 2) the feature set does lag behind a bit (but that probably won’t matter in practice - you’re not likely to be using the services from day 1).
In addition to CFN, you can use OpsWorks and Elastic Beanstalk to prove a nice web interface on top of AWS automation. OW uses Chef and EB is aimed at deploying code direction from your source control management tool (e.g. git).
CFN is the most versatile, but the others are good in specific use-cases.
Why not the AWS channel on Freenode?