Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Amazon EC2 Cookbook
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
← Prev
Back
Next →
← Prev
Back
Next →