Working with Ansible and AWS together. Provisioning servers, setting up Cloudwatch alarms automatically, setting up Route53 records and a simple Autoscaling workflow.
2. Bringing Ansible to the Cloud
Static/Dynamic Inventories
Scripted EC2 Provision
Route53 (DNS)
CloudWatch Alerts
Autoscaling Workflow
Demo
1 2
3. Allan Denot
∙ 1 year experience with Ansible
∙ 2 years experience with AWS
∙ DevOps Engineer at cammy.com (previously Suncorp)
∙ Co-founder of spikenode.com
@denot allandenot.com
17. DNS
Creating or updating a DNS record based on a tag
- local_action: >
route53
command=create
zone=yourawesomedomain.com
record={{ec2_tag_Name}}.yourawesomedomain.com
type=A
ttl=300
value={{ec2_ip_address}}
overwrite=yes
22. Tag
instance as
test passed
Test app*Install
packages,
deploy app,
etc.
Using
ansible ec2
module
Autoscaling Workflow
Create EC2 Configure Test
pre-production/staging environment
* to be covered in a future meetup or blog post