Book Image

AWS Administration - The Definitive Guide - Second Edition

By : Yohan Wadia
Book Image

AWS Administration - The Definitive Guide - Second Edition

By: Yohan Wadia

Overview of this book

Many businesses are moving from traditional data centers to AWS because of its reliability, vast service offerings, lower costs, and high rate of innovation. AWS can be used to accomplish a variety of both simple and tedious tasks. Whether you are a seasoned system admin or a rookie, this book will help you to learn all the skills you need to work with the AWS cloud. This book guides you through some of the most popular AWS services, such as EC2, Elastic Beanstalk, EFS, CloudTrail, Redshift, EMR, Data Pipeline, and IoT using a simple, real-world, application-hosting example. This book will also enhance your application delivery skills with the latest AWS services, such as CodeCommit, CodeDeploy, and CodePipeline, to provide continuous delivery and deployment, while also securing and monitoring your environment's workflow. Each chapter is designed to provide you with maximal information about each AWS service, coupled with easy to follow, hands-on steps, best practices, tips, and recommendations. By the end of the book, you will be able to create a highly secure, fault-tolerant, and scalable environment for your applications to run on.
Table of Contents (17 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Preface

Amazon Web Services has been the go-to cloud for customers and enterprises for a long time now. The cloud provider has evolved from just an Infrastructure as a Service provider to everything and anything as a service that helps in the development of applications, game development, IoT, big data analysis, customer engagement services, AR-VR, and much more! However, with so many services and products coming up each year, it tends to get difficult for beginners to know where and how exactly to start using these services.

This book is a one-stop shop where you can find all there is to getting started with AWS services, which includes EC2 Systems Manager, Elastic Beanstalk, EFS, CloudTrail, EMR, IoT, and a whole lot more! If you are a sysadmin or an architect or someone who just wants to learn and explore various aspects of administering AWS services, then this book is the right choice for you! Each chapter of this book is designed to help you understand the individual services' concepts and gain hands-on experience by practicing simple and easy-to-follow steps. The book also highlights some key best practices and recommendations that you ought to keep in mind when working with AWS.

Who this book is for

This book is intended for any and all IT professionals who wish to learn and implement AWS for their own environment and application hosting. Although no prior experience or knowledge is required, it will be beneficial for you to have basic Linux knowledge and some understanding of networking concepts and server virtualization.

What this book covers

Chapter 1, What's New in AWS?, contains a brief introduction to some of the key enhancements and announcements made to the existing line of AWS services and products.

Chapter 2, Managing EC2 with Systems Manager, provides a brief introduction to using EC2 Systems Manager to manage your fleet of EC2 instances. It also covers an in-depth look at how to work with SSM agents, Run Command, as well as other systems manager features, such as automation, patching, and inventory management.

Chapter 3, Introducing Elastic Beanstalk and Elastic File System, explains how to leverage both Elastic Beanstalk and the Elastic File Systems services to build and scale out web applications and deploy them with absolute ease.

Chapter 4, Securing Workloads Using AWS WAF, discusses some of the key aspects that you can leverage to provide added security for your web applications using AWS WAF and AWS Shield. The chapter also provides some keen insights into how you can protect your web applications against commonly occurring attacks such as cross-site scripting and SQL injections.

Chapter 5, Governing Your Environments Using AWS CloudTrail and AWS Config, introduces you to the concept and benefits provided by leveraging AWS CloudTrail and AWS Config. The chapter covers in-depth scenarios using which you can standardize governance and security for your AWS environments.

Chapter 6, Access Control Using AWS IAM and AWS Organizations, takes a look at some of the latest enhancements made to the AWS IAM service. It also walks you through how you can manage your AWS accounts with better efficiency and control using AWS organizations as a Service.

Chapter 7, Transforming Application Development Using the AWS Code Suite, covers an in-depth look at how you can leverage CodeCommit, CodeDeploy, and CodePipeline to design and build complete CICD pipelines for your applications.

Chapter 8, Messaging in the Cloud Using Amazon SNS and Amazon SQS, provides an in-depth look at how you can effectively develop modern cloud-ready, decoupled applications, and perform general housekeeping of your AWS accounts.

Chapter 9, Powering Analytics Using Amazon EMR and Amazon Redshift, provides practical knowledge and hands-on approach to process and a run large-scale analytics and data warehousing in the AWS Cloud.

Chapter 10, Orchestrating Data Using AWS Data Pipeline, covers how you can effectively orchestrate the movement of data from one AWS service to another using simple, reusable pipeline definitions.

Chapter 11, Connecting the World with AWS IoT and AWS Greengrass, provides a quick introduction to the AWS IoT Suite of services, along with hands-on guides on how you can connect, test, and monitor IoT devices with utmost ease.

To get the most out of this book

To start using this book, you will need the following software installed on your local desktop:

  • An SSH client such as PuTTY, a key generator such as PuTTYgen, and a file transferring tool such as WinSCP
  • Any modern web browser, preferably Mozilla Firefox

Download the example code files

You can download the example code files for this book from your account at www.packtpub.com. If you purchased this book elsewhere, you can visit www.packtpub.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packtpub.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/AWS-Administration-The-Definitive-Guide-Second-Edition. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The document comprises of two primary sections: a Parameters section, which contains a list of actions to be performed by the document, followed by a mainSteps section that specifies the action, which in this case is the aws:configurePackage to be performed by the document. In this case, the document when invoked will ask the user to select either apache2mysql-server, or php from the dropdown list followed by an optional version number of the software you select."

A block of code is set as follows:

{ 
    "Effect": "Allow", 
    "Action": [ 
      "ec2messages:AcknowledgeMessage", 
      "ec2messages:DeleteMessage", 
      "ec2messages:FailMessage", 
      "ec2messages:GetEndpoint", 
      "ec2messages:GetMessages", 
      "ec2messages:SendReply" 
    ], 
    "Resource": "*" 
}, 

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

{ 
"Effect": "Allow",
    "Action": [ 
      "ec2messages:AcknowledgeMessage", 
      "ec2messages:DeleteMessage", 
      "ec2messages:FailMessage", 
      "ec2messages:GetEndpoint", 
      "ec2messages:GetMessages", 
      "ec2messages:SendReply" 
    ], 
"Resource": "*"
}, 

Any command-line input or output is written as follows:

# wget https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/debian_amd64/amazon-ssm-agent.deb

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "In the Create Role wizard, select the EC2 option from the AWS service role type, as shown in the following screenshot. Next, select the EC2 option as the use case for this activity and click on Next: Permissions button to continue."

Note

Warnings or important notes appear like this.

Note

Tips and tricks appear like this.

Get in touch

Feedback from our readers is always welcome.

General feedback: Email [email protected] and mention the book title in the subject of your message. If you have questions about any aspect of this book, please email us at [email protected].

Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you would report this to us. Please visit www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details.

Piracy: If you come across any illegal copies of our works in any form on the Internet, we would be grateful if you would provide us with the location address or website name. Please contact us at [email protected] with a link to the material.

If you are interested in becoming an author: If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, please visit authors.packtpub.com.

Reviews

Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at Packt can understand what you think about our products, and our authors can see your feedback on their book. Thank you!

For more information about Packt, please visit packtpub.com.