Member-only story
Use Ansible to create and configure EC2 instances on AWS
Quick how to tutorial to using Ansible to stand up EC2 instances on AWS. Over the next 5 minutes, we’ll create an initial jumpbox in our default VPC and install some basic developer tools onto it.
Inspiration
I’ve been using the awesome A Cloud Guru “Cloud Playground” sandboxes to progress through some of their training content. These environments are fully-functional AWS accounts and allow the user to follow along the Cloud certification tutorials and training — a great new feature of A Cloud Guru.
A sandbox lasts 5 hours, which is usually ample enough time to follow along, but every so often I find that I come back the next day and want to recreate some baseline infrastructure and pick up from where I left off.
That inspired me to look at Infrastructure as Code and build out a repeatable platform from code blueprints.
I’ve experience using Terraform by Hashicorp, and I understand using Terraform and Ansible together. I’m also aware of AWS CloudFormation, and also how I could snapshot an image and create an AMI.