更新时间:2021-07-15 17:12:35
cover
Title Page
Copyright
Effective DevOps with AWS
Credits
About the Author
About the Reviewer
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
The Cloud and the DevOps Revolution
Thinking in terms of the cloud and not infrastructure
Deploying your own hardware versus in the cloud
Cost analysis
Just-in-time infrastructure
The different layers of building a cloud
Adopting a DevOps culture
The origin of DevOps
The developers versus operations dilemma
Too much code changing at once
Differences in the production environment
Communication
Key characteristics of a DevOps culture
Source control everything
Automate testing
Automate infrastructure provisioning and configuration
Automate deployment
Measure everything
Deploying in AWS
How best to take advantage of the AWS ecosystem
How AWS synergizes with a DevOps culture
Summary
Deploying Your First Web Application
Creating and configuring your account
Signing up
Enabling multi-factor authentication on the root account
Creating a new user in IAM
Installing and configuring the command-line interface (CLI)
Installing Windows Subsystem for Linux (Windows only)
Installing the AWS CLI package
Configuring the AWS CLI
Creating our first web server
AMI
Instance type
Security group
Generating your ssh keys
Launching an EC2 instance
Connecting to the EC2 instance using ssh
Creating a simple Hello World web application
Installing node.js
Running a node.js Hello World.
Turning our simple code into a service using Upstart
Terminating our EC2 instance
Treating Your Infrastructure As Code
Managing your infrastructure with CloudFormation
Getting started with CloudFormation
AWS CloudFormation Designer
CloudFormer
Recreating our Hello World example with CloudFormation
Using troposphere to create a Python script for our template
Creating the stack in the CloudFormation console
Adding our template to a source control system
Updating our CloudFormation stack
Updating our Python script
Updating our stack
Change sets
Deleting our CloudFormation stack
Adding a configuration management system
Getting started with Ansible
Installing Ansible on your computer
Creating our Ansible playground
Creating our Ansible repository
Executing modules
Running arbitrary commands
Ansible playbooks
Creating a playbook
Creating roles to deploy and start our web application
Creating the playbook file
Executing a playbook
Canary-testing changes
Running Ansible in pull mode
Installing Git and Ansible on our EC2 instance
Configuring Ansible to run on localhost
Adding a cronjob to our EC2 instance
Integrating Ansible with CloudFormation
Monitoring