Book Image

AWS Networking Cookbook

By : Satyajit Das, Jhalak Modi
Book Image

AWS Networking Cookbook

By: Satyajit Das, Jhalak Modi

Overview of this book

This book starts with practical recipes on the fundamentals of cloud networking and gradually moves on to configuring networks and implementing infrastructure automation. This book then supplies in-depth recipes on networking components like Network Interface, Internet Gateways, DNS, Elastic IP addresses, and VPN CloudHub. Later, this book also delves into designing, implementing, and optimizing static and dynamic routing architectures, multi-region solutions, and highly available connectivity for your enterprise. Finally, this book will teach you to troubleshoot your VPC's network, increasing your VPC's efficiency. By the end of this book, you will have advanced knowledge of AWS networking concepts and technologies and will have mastered implementing infrastructure automation and optimizing your VPC.
Table of Contents (10 chapters)

Installing Ansible

There are several ways to install Ansible. We will be cloning the full repository from Git and then installing it. The following are the steps:

  1. Log in to the EC2 console (the steps have already been provided in Chapter 2, Building Your Own Custom VPC, in recipe, Managing EC2 instances).
  1. Launch an EC2 server (the steps have already been provided in Chapter 2, Building Your Own Custom VPC, in recipe, Managing EC2 instances).
EC2 Server
  1. Log in to the server.
EC2 Linux Server Login
  1. Install Ansible (RHEL/Ubuntu).
  2. Change the hostname.
[root@ip-172-31-18-87 ~] # hostname ansible
  1. Check whether Python is installed with 2.x version (because a version below 2.x is not compatible with Ansible).
[root@ansible ~]# python -V
Python 2.7.12
  1. Enable the EPEL repository on Amazon Linux. Go to your yum.repos.d folder and enable epel.repo (modify enabled=0 to enabled...