Book Image

AWS for System Administrators

By : Prashant Lakhera
Book Image

AWS for System Administrators

By: Prashant Lakhera

Overview of this book

Amazon Web Services (AWS) is one of the most popular and efficient cloud platforms for administering and deploying your applications to make them resilient and robust. AWS for System Administrators will help you to learn several advanced cloud administration concepts for deploying, managing, and operating highly available systems on AWS. Starting with the fundamentals of identity and access management (IAM) for securing your environment, this book will gradually take you through AWS networking and monitoring tools. As you make your way through the chapters, you’ll get to grips with VPC, EC2, load balancer, Auto Scaling, RDS database, and data management. The book will also show you how to initiate AWS automated backups and store and keep track of log files. Later, you’ll work with AWS APIs and understand how to use them along with CloudFormation, Python Boto3 Script, and Terraform to automate infrastructure. By the end of this AWS book, you’ll be ready to build your two-tier startup with all the necessary infrastructure, monitoring, and logging components in place.
Table of Contents (18 chapters)
1
Section 1: AWS Services and Tools
4
Section 2: Building the Infrastructure
7
Section 3: Adding Scalability and Elasticity to the Infrastructure
11
Section 4: The Monitoring, Metrics, and Backup Layers

The power of the IAM permission boundary

The main idea behind a permission boundary is to provide a safety net. It's a set of access rights that an entity such as user, group, or organization can never exceed. A permission boundary on its own doesn't grant any permissions. The primary purpose of it is to restrict access. To understand permission boundaries, let's take a simple example, as follows:

  1. Create an IAM user using an aws iam create-user command. We need to pass –-user-name at the end of the command and then give the username—in this case, mypermuser. This will create an IAM user, as follows:
    $ aws iam create-user --user-name mypermuser
  2. In the next step, we will assign full permissions to the user by attaching an AdministratorAccess policy. To attach this policy, we need to use an aws iam attach-user-policy command and then pass the username, mypermuser, which is the same user we created in the previous step. The code for this can be seen...