Ansible for AWS

A simple way to provision and manage your Amazon Cloud infrastructure

Ansible for AWS

Starting
Yan Kurniawan

A simple way to provision and manage your Amazon Cloud infrastructure
$39.99
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2016

With unlimited access to a constantly growing library of over 3,500 courses, a subscription to Mapt gives you everything you need to get that next promotion or to land that dream job. Cancel anytime.

+ Collection

Book Details

ISBN 139781786469199
Paperback354 pages

Book Description

Looking to get a simple and efficient way to manage your Amazon Cloud infrastructure? Ansible is exactly what you need. This book will show you how to use Ansible’s cloud modules to easily provision and manage AWS resources including EC2, VPC, RDS, S3, ELB, ElastiCache, and Route 53. We’ll take you beyond the basics of Ansible, showing you real-world examples of AWS infrastructure automation and management with detailed steps, complete code, and screen captures from the AWS console.

The example projects inside this title will help you grasp the process leading to full AWS automation. From a single WordPress site to a highly available and scalable WordPress site, we’ll demonstrate the power of using Ansible to provision and automate AWS-based infrastructure deployment.

Table of Contents

Chapter 1: Getting Started with AWS
What is Amazon Web Services?
Setting up your AWS account
AWS management console
Create your first EC2 instance
Connect to your instance
Terminate your instance
Chapter 2: Getting Started with Ansible
What you'll need
Installing Ansible
SSH keys
Inventory
Your first commands
Playbooks
Your first playbook
Roles and include statements
Chapter 3: EC2 Provisioning and Configuration Management with Ansible
Python boto
AWS access keys
Cloud modules
Key pair
Security groups
EC2 provisioning
Elastic IP address (EIP)
Configuration management
Dynamic inventory
Elastic Block Store - EBS
Instance profile
Chapter 4: Project 1 - A WordPress Site
Provisioning playbook
Variables file
Roles directory
Common roles
Web roles
mysql roles
wordpress roles
site.yml
Directory structure
Playbook run
Chapter 5: Route 53 Management with Ansible
Hosted zones
DNS records management
Chapter 6: VPC Provisioning with Ansible
The default VPC
Getting started with VPC
VPC provisioning
VPC security groups
EC2-VPC provisioning
NAT instance
Multi-AZ deployment
Ansible in VPC
OpenVPN server
Getting VPC and subnet ID
Chapter 7: RDS Provisioning with Ansible
Introduction
Getting started with RDS
The rds_subnet_group module
The rds_param_group module
The rds module
Chapter 8: S3 Management with Ansible
Bucket
Objects
Ansible's S3 module
Backup storage
Using s3cmd with Ansible
Chapter 9: Using AWS CLI with Ansible
Installing the AWS CLI
Configuring the AWS CLI
Using the AWS CLI
AWS CLI in Ansible playbook
Chapter 10: Project 2 - A Multi-Tier WordPress Site
Multi-AZ RDS provisioning
Master WordPress instance
Next steps
Chapter 11: Amazon Machine Images - AMI
The ec2_ami module
Creating custom AMI
Deleting custom AMI
Chapter 12: Auto Scaling and Elastic Load Balancing – ELB
What is Auto Scaling?
How Auto Scaling works?
The architecture
VPC update
Security groups update
Getting started with Auto Scaling
Scaling the size of your Auto Scaling group
Load Balance your Auto Scaling group
Getting started with ELB
Attaching load balancer to ASG
Scheduled scaling
Dynamic scaling
Scaling based on metrics
More about Auto Scaling
Chapter 13: ELB and Auto Scaling with Ansible
The ec2_elb_lb module
The ec2_lc module
The ec2_asg module
The ec2_scaling_policy module
The ec2_metric_alarm module
The Playbook
Chapter 14: Identity and Access Management (IAM)
Accessing IAM
Getting started with IAM
IAM best practices
The iam module
The iam_policy module
Example playbooks
Instance profile

What You Will Learn

  • Set up your own AWS account and get started with the AWS console
  • Use Ansible Playbook to configure and launch EC2 instances
  • Delve deeper into the AWS cloud infrastructure and create and manage VPC
  • Provision Amazon Relational Database Service (RDS) with Ansible
  • Manage files in an Amazon Simple Storage Service (S3) bucket using Ansible
  • Extend Ansible’s functionality in the AWS environment
  • Use Ansible to provision ELB and Auto Scaling groups
  • Manage IAM users, groups, roles, and keys
  • See how to refine and chain together AWS tools using Ansible

Authors

Table of Contents

Chapter 1: Getting Started with AWS
What is Amazon Web Services?
Setting up your AWS account
AWS management console
Create your first EC2 instance
Connect to your instance
Terminate your instance
Chapter 2: Getting Started with Ansible
What you'll need
Installing Ansible
SSH keys
Inventory
Your first commands
Playbooks
Your first playbook
Roles and include statements
Chapter 3: EC2 Provisioning and Configuration Management with Ansible
Python boto
AWS access keys
Cloud modules
Key pair
Security groups
EC2 provisioning
Elastic IP address (EIP)
Configuration management
Dynamic inventory
Elastic Block Store - EBS
Instance profile
Chapter 4: Project 1 - A WordPress Site
Provisioning playbook
Variables file
Roles directory
Common roles
Web roles
mysql roles
wordpress roles
site.yml
Directory structure
Playbook run
Chapter 5: Route 53 Management with Ansible
Hosted zones
DNS records management
Chapter 6: VPC Provisioning with Ansible
The default VPC
Getting started with VPC
VPC provisioning
VPC security groups
EC2-VPC provisioning
NAT instance
Multi-AZ deployment
Ansible in VPC
OpenVPN server
Getting VPC and subnet ID
Chapter 7: RDS Provisioning with Ansible
Introduction
Getting started with RDS
The rds_subnet_group module
The rds_param_group module
The rds module
Chapter 8: S3 Management with Ansible
Bucket
Objects
Ansible's S3 module
Backup storage
Using s3cmd with Ansible
Chapter 9: Using AWS CLI with Ansible
Installing the AWS CLI
Configuring the AWS CLI
Using the AWS CLI
AWS CLI in Ansible playbook
Chapter 10: Project 2 - A Multi-Tier WordPress Site
Multi-AZ RDS provisioning
Master WordPress instance
Next steps
Chapter 11: Amazon Machine Images - AMI
The ec2_ami module
Creating custom AMI
Deleting custom AMI
Chapter 12: Auto Scaling and Elastic Load Balancing – ELB
What is Auto Scaling?
How Auto Scaling works?
The architecture
VPC update
Security groups update
Getting started with Auto Scaling
Scaling the size of your Auto Scaling group
Load Balance your Auto Scaling group
Getting started with ELB
Attaching load balancer to ASG
Scheduled scaling
Dynamic scaling
Scaling based on metrics
More about Auto Scaling
Chapter 13: ELB and Auto Scaling with Ansible
The ec2_elb_lb module
The ec2_lc module
The ec2_asg module
The ec2_scaling_policy module
The ec2_metric_alarm module
The Playbook
Chapter 14: Identity and Access Management (IAM)
Accessing IAM
Getting started with IAM
IAM best practices
The iam module
The iam_policy module
Example playbooks
Instance profile

Book Details

ISBN 139781786469199
Paperback354 pages
Read More

Read More Reviews