![]()
Table of Contents
Amazon EC2 Cookbook
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Instant updates on new Packt books
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do itā¦
How it worksā¦
There's moreā¦
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Selecting and Configuring Amazon EC2 Instances
Introduction
Choosing the right AWS EC2 instance types
How to do itā¦
Preparing AWS CLI tools
How to do itā¦
Getting access key ID and secret access key
Installing AWS CLI using pip in Linux
Installing AWS CLI using pip in Windows/Mac
Launching EC2 instances using EC2-Classic and EC2-VPC
Getting startedā¦
How to do itā¦
Launching the EC2 instance in EC2-Classic
Launching the EC2 instance in VPC
See also
Allocating Elastic IP addresses
How to do itā¦
See also
Creating an instance with multiple NIC cards and a static private IP address
How to do itā¦
Creating a network interface
Attaching the network interface to an instance
Associating the EIP to the ENI
See also
Selecting the right storage for your EC2 instance
How to do itā¦
Creating an EBS volume
Attaching the volume
Creating tags for consistency
How to do itā¦
Creating tags for one or more AWS resources
Configuring security groups
How to do itā¦
Creating a security group for EC2-Classic
Creating a security group for EC2-VPC
Adding an inbound rule
Adding an outbound rule
Adding the security group to an instance
Creating an EC2 key pair
How to do itā¦
Creating a key pair
Grouping EC2 instances using placement groups
How to do itā¦
Creating a placement group
Placing instances in the placement group
Configuring Elastic Load Balancing
How to do itā¦
Creating an Internet-facing ELB with listeners
Configuring health checks on ELB
Adding instances to the ELB
Architecting for high availability
How to do itā¦
Creating instances for AWS Marketplace
How to do itā¦
Creating an AMI from EC2 instance
Making the AMI public
2. Configuring and Securing a Virtual Private Cloud
Introduction
Creating and configuring VPC
How to do itā¦
How it worksā¦
Configuring VPC DHCP options
How to do itā¦
How it worksā¦
Configuring networking connections between two VPCs (VPC peering)
How to do itā¦
How it worksā¦
Connecting on-premise network to VPC using VPN
How to do itā¦
How it worksā¦
3. Managing AWS Resources Using AWS CloudFormation
Introduction
Creating CloudFormation templates
How to do itā¦
How it worksā¦
There's moreā¦
Creating CloudFormation templates from existing AWS resources
How to do itā¦
How it worksā¦
Deploying applications on EC2 instances
How to do itā¦
How it worksā¦
Updating a stack
How to do itā¦
How it worksā¦
4. Securing Access to Amazon EC2 Instances
Introduction
Creating IAM users
How to do itā¦
How it worksā¦
Creating IAM groups and assigning group-level permissions
How to do itā¦
How it worksā¦
Creating IAM roles
How to do itā¦
How it worksā¦
There's moreā¦
Connecting on-premise AD to AWS IAM
How to do itā¦
How it worksā¦
Configuring AWS multifactor authentication
How to do itā¦
How it worksā¦
There's moreā¦
5. Monitoring Amazon EC2 Instances
Introduction
Collecting EC2 metrics using AWS CloudWatch
How to do itā¦
How it worksā¦
Collecting custom metrics from EC2 instances
How to do itā¦
How it worksā¦
There's moreā¦
Monitoring costs using CloudWatch
How to do itā¦
Enabling the monitoring of your estimated charges
How it worksā¦
Sending an e-mail based on a CloudWatch alarm
How to do itā¦
How it worksā¦
Using CloudWatch Logs
How to do itā¦
How it worksā¦
There's moreā¦
6. Using AWS Data Services
Introduction
Using Amazon SimpleDB services from a Java program
How to do itā¦
How it worksā¦
There's moreā¦
Using Amazon DynamoDB
How to do itā¦
How it worksā¦
There's moreā¦
Using Amazon ElastiCache
How to do itā¦
Working with ElasticCache
How it worksā¦
There's moreā¦
Using Amazon RDS
How to do itā¦
How it worksā¦
7. Accessing Other AWS Services
Introduction
Configuring Route 53
How to do itā¦
How it worksā¦
There's moreā¦
Accessing AWS S3 from applications
How to do itā¦
How it worksā¦
There's moreā¦
Accessing AWS SES from applications
How to do itā¦
How it worksā¦
There's moreā¦
Accessing AWS SNS from applications
How to do itā¦
How it worksā¦
There's moreā¦
Accessing AWS SQS from applications
How to do itā¦
How it worksā¦
There's moreā¦
8. Deploying AWS Applications
Introduction
Using Docker containers for AWS deployments
How to do itā¦
Installing Docker
Creating a Dockerfile
Building an image from the Dockerfile
Creating Docker container
Checking the container status
How it worksā¦
There's moreā¦
Using Chef for AWS deployments
How to do itā¦
Installing the knife-ec2 plugin
Configuring Chef Provisioner node with knife-ec2 plugin
Configuring Chef Provisioner node
Creating cookbooks and recipes
Starting Chef client from the provisioning node
How it worksā¦
There's moreā¦
Using Puppet for AWS deployments
How to do itā¦
Installing Puppet AWS module in Puppet master
Launching an EC2 instance with Puppet agent
How it worksā¦
There's moreā¦
Index
![]()
Copyright Ā© 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: November 2015
Production reference: 1241115
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78528-004-7
www.packtpub.com
![]()
Authors
Sekhar Reddy
Aurobindo Sarkar
Reviewer
Mark Takacs
Commissioning Editor
Amarabha Banerjee
Acquisitio...