Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
AWS for System Administrators
AWS for System Administrators

AWS for System Administrators: Build, automate, and operate scalable cloud infrastructure on AWS , Second Edition

Arrow left icon
Profile Icon Marcel Neidinger Profile Icon Prashant Lakhera
Arrow right icon
€8.99 €29.99
eBook May 2025 426 pages 2nd Edition
eBook
€8.99 €29.99
Paperback
€29.99 €37.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Marcel Neidinger Profile Icon Prashant Lakhera
Arrow right icon
€8.99 €29.99
eBook May 2025 426 pages 2nd Edition
eBook
€8.99 €29.99
Paperback
€29.99 €37.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€8.99 €29.99
Paperback
€29.99 €37.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

AWS for System Administrators

Setting Up the AWS Environment

AWS and the cloud have fundamentally changed the way we operate infrastructure. Before the cloud, most companies would operate data centers, where they would buy compute and network resources such as servers, routers, and switches. All this hardware would then be set up, maintained, and operated.

In contrast, the cloud has not only changed the way we procure infrastructure (shifting from a model with large capital expenditures for buying hardware to a pay-as-you-go model) but also changed the way we operate this infrastructure. Instead of cabling servers and switches, everything in the cloud is software-defined and just one application programming interface (API) call away.

This chapter starts off the journey to cloud-based systems operations by installing the tools that will be used throughout the book. We begin by installing the AWS command-line interface (CLI), a versatile tool that allows us to interact with resources in the AWS Cloud from...

Technical requirements

Before following this section, please create an AWS account for yourself. You can sign up at https://aws.amazon.com. A basic understanding of AWS – for example, what a service is – will be beneficial to the understanding of this chapter.

A fundamental understanding of Python will help with the programming-based sections of this chapter. A basic understanding of IaC tools such as Terraform and the Linux command line will help you with following along in this chapter.

The commands in this chapter assume that you are using a Linux-based operating system. We will point out the Windows version where needed and possible.

You’ll also need the following software installed on your system:

  • Python version 3.8 or later
  • Node.js version 14.15.0 or later

Both of these version requirements are at the time of writing in May 2024. You can check the following links for the required versions:

Setting up the environment

AWS offers two ways of interacting with its services. One is the web interface, and the other is the API. The API is used by tools such as the AWS CLI or Terraform for programmatic interactions, while the web interface allows us to configure resources by clicking. Throughout this book, we’ll refer to the web interface (the AWS Management Console, which you can find at https://console.aws.amazon.com) as the AWS Console and will refer to the tool that you can use on the terminal as the AWS CLI.

The AWS CLI, Terraform, CloudFormation, and CDK all interact with the AWS services via the API and need to authenticate themselves against the API with an AWS access key and a secret access key.

For our initial setup, we’ll create an Identity and Access Management (IAM) user using the AWS Console. We can then use the access key ID and secret access key from our newly created IAM user to authenticate ourselves in the AWS CLI.

Important note

For...

Introducing the Boto3 SDK for Python

In this section, we’ll be installing and setting up the AWS SDK for Python, called Boto3. Boto3 is a powerful abstraction that allows us to interact with the AWS APIs from our Python code. This allows us to write automation scripts for complex operations.

Installing Boto3

We can use the pip package manager to install the Python package. To do so, run the following command:

python3 -m pip install boto3

If you are using Windows as your operating system, you might have to use the following command instead:

python –m pip install boto3

Trivia

You might be wondering why this SDK is called boto and not something like aws-python-sdk. The library is named after a breed of dolphins (called boto) that are native to the Amazon River. The creator of the original boto library, Mitch Garnaat, wanted a name that was “short, unusual, and with at least some kind of connection to Amazon.” You can read more details –...

What is CloudFormation?

While we could use the previously introduced AWS CLI or custom scripts using Python and Boto3 to create our infrastructure – at scale – we would like a tool that takes care of things such as abstracting the AWS API and keeping track of the state (maybe we want to modify an existing resource instead of creating a new one). This is where an IaC tool such as CloudFormation comes into play.

CloudFormation allows us to declaratively define how we want our infrastructure to look (i.e., that we want an S3 bucket named marcel-this-is-my-test-bucket) instead of having to imperatively write a script that contains all the API actions needed to create an S3 bucket with that name.

CloudFormation templates are written in either YAML or JSON. Throughout this book, we’ll use the YAML version due to its brevity and readability.

With CloudFormation being a fundamental AWS service, we don’t need to install anything. It can be used with the...

Exploring the AWS CDK

With the CDK, we describe our infrastructure using constructs in a high-level programming language such as Python, Java, or TypeScript. This then gets compiled into CloudFormation templates for us.

Installing the AWS CDK

In order to use the CDK – regardless of which of the offered programming languages you want to use – you’ll need Node.js installed. We can then use the node package manager (npm) to install the latest version of the CDK.

The following command will install cdk as a global package:

npm install -g aws-cdk

You can check that cdk is installed properly by running the following command:

cdk version

Important note

Regardless of the fact that we’ll be using Python to describe our CDK project, we still need to have Node.js installed since the core of CDK is written in JavaScript.

At the time of writing (May 2024), the CDK supports the following programming languages:

  • TypeScript
  • JavaScript
  • ...

Introducing Terraform

Terraform is declarative. This means that we declare a resource (such as our S3 bucket) and Terraform then figures out the required API actions to create this resource. To describe the resources, Terraform uses its own language called HashiCorp Configuration Language (HCL) or, optionally, JSON. We’ll be using HCL throughout this book as it offers a more concise way to write our Terraform code as well as additional abilities such as adding comments to our code.

Terraform uses providers (usually written in Go) to translate the resources and changes defined in your Terraform code into API calls to AWS. The benefit of Terraform is that there are providers not only for AWS but also for other hyperscalers such as Microsoft Azure and GCP, as well as other providers.

This means that you can use the same language (HCL) and the same technology (Terraform) to describe your resources in different cloud providers.

Installing Terraform

To install Terraform...

Summary

In this chapter, we installed and set up the required tools such as the AWS CLI, the boto3 SDK for Python, the AWS CDK, and Terraform. Using these tools, we wrote some simple scripts, templates, or programs to create infrastructure following the IaC paradigm. We will use these tools in the coming chapters to build our infrastructure.

In the next chapter, we’ll see how the IAM service works and how we can use it to tighten security.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Use a hands-on approach that mirrors real AWS operations with end-to-end examples
  • Use scripting and IaC to handle tasks like infrastructure deployment, credential rotation, backups, and resource cleanup
  • Manage complex environments with reusable code, policy enforcement, and multi-account best practices
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

System administrators adopting AWS often struggle with automation, scalability, and multi-account management. Originally authored by Prashant Lakhera and now thoroughly updated by Senior Solutions Architect Marcel Neidinger, this second edition is your scenario-driven, hands-on guide to efficiently deploying and managing cloud infrastructure using Infrastructure as Code (IaC). This updated edition features new topics like chaos engineering with AWS Fault Injection Simulator, multi-account CI/CD deployments, reusable IaC patterns, and cloud compliance using AWS Config and service control policies—all to help you build modern cloud architectures. You’ll set up AWS CLI, Terraform, and CDK to automate deployments, as well as explore cloud networking with VPCs, EC2, and Transit Gateway, followed by auto-scaling and load balancing strategies. The chapters highlight AWS Secrets Manager for securely storing and accessing your secrets, along with CloudWatch for monitoring and observability in the cloud. You’ll implement centralized logging and develop backup and disaster recovery strategies. The book guides you through the processes and best practices for setting up a multi-account environment, with real-world scenarios for optimizing costs and ensuring high availability. By the end of this book, you’ll have the skills to efficiently deploy, manage, and optimize AWS infrastructure at scale.

Who is this book for?

This book is designed for system administrators, DevOps engineers, and IT professionals who want to effectively manage and automate AWS environments. A basic understanding of cloud computing, the Linux operating system, and networking concepts is recommended.

What you will learn

  • Design and deploy networks in the cloud with VPCs and deploy instances with EC2
  • Implement auto-scaling and load balancing to optimize application performance
  • Deploy relational databases with Amazon RDS
  • Secure credentials using AWS Secrets Manager
  • Monitor AWS resources using CloudWatch and SNS
  • Test infrastructure resiliency using AWS Fault Injection Simulator
  • Automate backups and implement disaster recovery strategies
  • Set up and manage multiple AWS accounts using AWS Organizations

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 29, 2025
Length: 426 pages
Edition : 2nd
Language : English
ISBN-13 : 9781835469552
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : May 29, 2025
Length: 426 pages
Edition : 2nd
Language : English
ISBN-13 : 9781835469552
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
Visually different images

Table of Contents

24 Chapters
Part 1: AWS Services and Tools Chevron down icon Chevron up icon
Chapter 1: Setting Up the AWS Environment Chevron down icon Chevron up icon
Chapter 2: Protecting Your AWS Account Using IAM Chevron down icon Chevron up icon
Part 2: Building Infrastructure Chevron down icon Chevron up icon
Chapter 3: Creating a Data Center in the Cloud Using a VPC Chevron down icon Chevron up icon
Chapter 4: Scalable Compute Capacity in the Cloud via EC2 Chevron down icon Chevron up icon
Part 3: Scalability and Elasticity of our Cloud Infrastructure Chevron down icon Chevron up icon
Chapter 5: Increasing Application Fault Tolerance and Efficiency with Elastic Load Balancing Chevron down icon Chevron up icon
Chapter 6: Increasing Application Performance Using AWS Auto Scaling Chevron down icon Chevron up icon
Chapter 7: Scaling a Relational Database in the Cloud Using Amazon Relational Database Service (RDS) Chevron down icon Chevron up icon
Chapter 8: Managing Secrets and Encryption Keys with AWS Secrets Manager and KMS Chevron down icon Chevron up icon
Part 4: Monitoring, Metrics, and the Backup Layer Chevron down icon Chevron up icon
Chapter 9: Centralized Logging and Monitoring with Amazon CloudWatch Chevron down icon Chevron up icon
Chapter 10: Centralizing Cloud Backup Solutions Chevron down icon Chevron up icon
Chapter 11: Disaster Recovery Options with AWS Chevron down icon Chevron up icon
Chapter 12: Testing the Resilience of Your Infrastructure and Architecture with AWS Fault Injection Service Chevron down icon Chevron up icon
Part 5: Deployments at Scale Chevron down icon Chevron up icon
Chapter 13: Deploying Infrastructure Using CI/CD Pipelines Chevron down icon Chevron up icon
Chapter 14: Building Reusable Infrastructure-as-Code Components Chevron down icon Chevron up icon
Chapter 15: Ensuring Compliance Using AWS Config and SCPs Chevron down icon Chevron up icon
Chapter 16: Operating in a Multi-Account Environment Chevron down icon Chevron up icon
Chapter 17: End-to-End Deployment of an Application Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.