Book Image

Effective DevOps with AWS - Second Edition

By : Yogesh Raheja, Giuseppe Borgese, Nathaniel Felsen
Book Image

Effective DevOps with AWS - Second Edition

By: Yogesh Raheja, Giuseppe Borgese, Nathaniel Felsen

Overview of this book

The DevOps movement has transformed the way modern tech companies work. Amazon Web Services (AWS), which has been at the forefront of the cloud computing revolution, has also been a key contributor to the DevOps movement, creating a huge range of managed services that help you implement DevOps principles. Effective DevOps with AWS, Second Edition will help you to understand how the most successful tech start-ups launch and scale their services on AWS, and will teach you how you can do the same. This book explains how to treat infrastructure as code, meaning you can bring resources online and offline as easily as you control your software. You will also build a continuous integration and continuous deployment pipeline to keep your app up to date. Once you have gotten to grips will all this, we'll move on to how to scale your applications to offer maximum performance to users even when traffic spikes, by using the latest technologies, such as containers. In addition to this, you'll get insights into monitoring and alerting, so you can make sure your users have the best experience when using your service. In the concluding chapters, we'll cover inbuilt AWS tools such as CodeDeploy and CloudFormation, which are used by many AWS administrators to perform DevOps. By the end of this book, you'll have learned how to ensure the security of your platform and data, using the latest and most prominent AWS tools.
Table of Contents (15 chapters)
Title Page
Packt Upsell

Chapter 2: Deploying Your First Web Application

  1. If you don't have an AWS cloud account,  go to and create a free-tier account. Follow the step-by-step instructions at You need to provide your credit or debit card details in order to create an AWS account.
  2. Go to and choose AWS compute services to create your first EC2 instance. Click on the Launch Instance button on the console and follow the steps to select an AMI, instance type (select free-tier in this case), followed by instance details, storage details, tags, and security group. For this exercise, you can select default options as our AIM is just to get familiar with the console portal so that we can automate this process using DevOps practices.
  3. Follow the step-by-step instructions provided under the Creating our first web server section in the chapter to create your first AWS instance using AWS CLI.
  4. Follow the steps mentioned in the Creating a simple Hello World web application section in the chapter. You can download the sample code of the application from the following links:
  5. Find the instance ID of your AWS instance using ec2-metadata --instance-id and then execute the mentioned command by amending your instance ID: aws ec2 terminate-instances --instance-ids <YOUR AWS INSTANCE ID>.