Step by Step: Fault-tolerant, Scalable, Secure AWS Web Stack
()
About this ebook
ABOUT THE BOOK
A look at core Amazon Web Services (AWS) services with an emphasis on implementation and skill development. You will start with a simple web application on a single Elastic Cloud Compute (EC2) instance and improve the stack step by step by adding high availability, fault-tolerance, scalability, security and ease of deployment. The book has 8 chapters and a capstone project, code, and commands required for the project are included.
You will learn about these AWS services - Elastic Cloud Compute (EC2), Elastic Block Store (EBS), Relational Database Service (RDS), Simple Storage Service (S3), DynamoDB, Identity and Access Management (IAM), ElastiCache, CloudFront, Elastic Beanstalk and Virtual Private Cloud (VPC).
You will use these important aspects of AWS:
- Infrastructure: AWS Regions and Availability Zones.
- EC2: Amazon Machine Images, EBS Snapshots, Application Load Balancers, Sticky Sessions, Auto-Scaling Groups.
- RDS: Read Replicas, Multi-AZ Deployment.
- Network: Public and Private Subnets, VPC Service Endpoints, Security Groups, NAT Gateways.
- Security: IAM Roles, IAM policies, S3 bucket policies, S3 Access Control Lists, CloudFront signed URLs.
- App development: AWS SDK.
You will implement these AWS best practices:
- Configure separate root and data EBS volumes.
- Create snapshots of EBS data volumes.
- Create Amazon Machine Images of your app servers.
- Use multiple instances and multiple zones.
- Centralize sessions, content and the database.
- Use auto-scaling groups for your app servers.
- Off-load database requests to read replicas or to in-memory databases.
- Use a Content Distribution Network to deliver content to users around the world.
- Use signed URLs when delivering private content.
- Configure security using the principle of least privileges.
- Use an automation platform for frequent deployments.
You will understand AWS best practices for typical web app functions:
- Session management.
- Content delivery.
- Content security.
- Databases.
AUDIENCE
Developers, system administrators or a solutions architects who need to use AWS in their projects, or need to develop, and perhaps showcase, strong skills in this technology. Those preparing for AWS certification exams, and like to learn by doing.
REQUIRED SKILLS
You will use, modify, and configure a Linux (Ubuntu), Apache, MySQL and PHP app throughout this project. This book assumes you have some familiarity with Linux, SSH, vi (or similar) editors and with Git. PHP skills are NOT required.
FROM THE AUTHOR
I am AWS certified (Solutions Architect - Associate level) and have over 20 years of experience in IT. I adopted AWS early, back in 2008, when setting up an AWS based SaaS business. As part of this project, I coached, for several years, a team of system admins and developers on this technology. For the last couple of years, I have been teaching a webinar based AWS solutions architecture course. This book has evolved from this long experience using and teaching AWS. I hope you will find it useful.
Related to Step by Step
Related ebooks
Amazon Web Services (AWS) Interview Questions and Answers Rating: 5 out of 5 stars5/5Securing Amazon Web Services Rating: 4 out of 5 stars4/5Learn Kubernetes - Container orchestration using Docker: Learn Collection Rating: 4 out of 5 stars4/5Quick Start Kubernetes Rating: 0 out of 5 stars0 ratingsAmazon Web Services in Action Rating: 0 out of 5 stars0 ratingsAWS All-in-one Security Guide: Design, Build, Monitor, and Manage a Fortified Application Ecosystem on AWS Rating: 0 out of 5 stars0 ratingsAnsible For Containers and Kubernetes By Examples Rating: 0 out of 5 stars0 ratingsImplementing DevOps on AWS Rating: 0 out of 5 stars0 ratingsAWS Solution Architect Certification Exam Practice Paper 2019 Rating: 4 out of 5 stars4/5Amazon S3 Essentials Rating: 0 out of 5 stars0 ratingsDeploy Containers on AWS: With EC2, ECS, and EKS Rating: 0 out of 5 stars0 ratingsAWS: The Ultimate Guide From Beginners To Advanced For The Amazon Web Services (2020 Edition) Rating: 2 out of 5 stars2/5Amazon EC2 Cookbook Rating: 0 out of 5 stars0 ratingsAWS Certified Cloud Practitioner - Practice Paper 4: AWS Certified Cloud Practitioner, #4 Rating: 0 out of 5 stars0 ratingsAWS Certified Solutions Architect - Professional Rating: 0 out of 5 stars0 ratingsAWS Administration – The Definitive Guide Rating: 5 out of 5 stars5/5Amazon S3 Cookbook Rating: 0 out of 5 stars0 ratingsLearning AWS Rating: 4 out of 5 stars4/5Mastering DynamoDB Rating: 0 out of 5 stars0 ratingsLearn Microservices - ASP.NET Core and Docker Rating: 0 out of 5 stars0 ratingsAWS Security Cookbook: Practical solutions for managing security policies, monitoring, auditing, and compliance with AWS Rating: 0 out of 5 stars0 ratingsLearn Docker - .NET Core, Java, Node.JS, PHP or Python: Learn Collection Rating: 5 out of 5 stars5/5Mastering DevOps in Kubernetes: Maximize your container workload efficiency with DevOps practices in Kubernetes (English Edition) Rating: 0 out of 5 stars0 ratingsAWS Certified Solutions Architect Associate All-in-One Exam Guide, Second Edition (Exam SAA-C02) Rating: 5 out of 5 stars5/5
Internet & Web For You
Coding For Dummies Rating: 5 out of 5 stars5/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5No Place to Hide: Edward Snowden, the NSA, and the U.S. Surveillance State Rating: 4 out of 5 stars4/5Social Engineering: The Science of Human Hacking Rating: 3 out of 5 stars3/5How to Be Invisible: Protect Your Home, Your Children, Your Assets, and Your Life Rating: 4 out of 5 stars4/5The Hacker Crackdown: Law and Disorder on the Electronic Frontier Rating: 4 out of 5 stars4/5Six Figure Blogging Blueprint Rating: 5 out of 5 stars5/5How To Make Money Blogging: How I Replaced My Day-Job With My Blog and How You Can Start A Blog Today Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5How to Disappear and Live Off the Grid: A CIA Insider's Guide Rating: 0 out of 5 stars0 ratingsEverybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5Podcasting For Dummies Rating: 4 out of 5 stars4/5Remote/WebCam Notarization <<Extended>> Commonwealth of Virginia Rating: 0 out of 5 stars0 ratingsHow To Start A Profitable Authority Blog In Under One Hour Rating: 5 out of 5 stars5/5The Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5Cybersecurity For Dummies Rating: 4 out of 5 stars4/5Hacking : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Ethical Hacking Rating: 5 out of 5 stars5/5How To Start A Podcast Rating: 4 out of 5 stars4/5Get Rich or Lie Trying: Ambition and Deceit in the New Influencer Economy Rating: 0 out of 5 stars0 ratingsPython QuickStart Guide: The Simplified Beginner's Guide to Python Programming Using Hands-On Projects and Real-World Applications Rating: 0 out of 5 stars0 ratingsThe Logo Brainstorm Book: A Comprehensive Guide for Exploring Design Directions Rating: 4 out of 5 stars4/5The Gothic Novel Collection Rating: 5 out of 5 stars5/5Six Figure Blogging In 3 Months Rating: 4 out of 5 stars4/5The $1,000,000 Web Designer Guide: A Practical Guide for Wealth and Freedom as an Online Freelancer Rating: 5 out of 5 stars5/5Wordpress for Beginners: The Easy Step-by-Step Guide to Creating a Website with WordPress Rating: 5 out of 5 stars5/5
Reviews for Step by Step
0 ratings0 reviews
Book preview
Step by Step - Savitra Sirohi
From the Author
Iam AWS certified (Solutions Architect - Associate level) and have over 20 years of experience in IT. I adopted AWS early, back in 2008, when setting up an AWS based SaaS business. As part of this project, I coached, for several years, a team of system admins and developers on this technology. For the last couple of years, I have been teaching a webinar based AWS solutions architecture course. This book has evolved from this long experience using and teaching AWS. I hope you will find it useful.
Audience
In this book, you will use some of the most important AWS services, and build, step by step, a fault-tolerant, scalable, secure and easy to deploy architecture.
With its focus on implementation and skill development, this book is a good fit for you, if you are a developer, system administrator or a solutions architect who needs to use AWS in projects, or if you need to develop, and perhaps showcase, strong skills in this technology.
As you build the stack, you will also develop a deeper understanding of key AWS services, and of important architectural and security principles, and best practices. For this reason, this book is also good preparation for AWS certification exams, especially at the associate level.
Required Skills
You will configure , deploy, and use a Linux (Ubuntu), Apache, MySQL and PHP app throughout this project. This book assumes you have some familiarity with Linux, SSH, vi (or similar) editors and with Git.
Introduction
In this book, you will learn how to build a fault-tolerant, scalable, and secure stack on AWS. You will also incorporate ease of deployment. Fault tolerance is avoiding downtime, and avoiding data loss when something fails. Scalability is ensuring the same performance at higher loads by adding more capacity. At the same time, it is important to reduce capacity when load decreases, this to help lower costs. Security is protecting content and data from unauthorized access. Ease of deployment is the ability to easily and frequently update applications.
You will implement a complete architecture using AWS compute services - Elastic Cloud Compute (EC2) and Elastic Beanstalk, AWS storage services - Elastic Block Store (EBS) and Simple Storage Service (S3), AWS database services - Relational Database Service (RDS), ElastiCache and DynamoDB, AWS network services - Virtual Private Cloud (VPC) and CloudFront and Identity and Access Management (IAM), a security service.
You will need an app to build and verify the architecture and this book includes a simple PHP app. The app is typical, it manages sessions, has a database, and serves private content in the form of images, and as you work through the material, the app will help you understand architectural best practices for these typical app functions.
The architecture you will build is complex, so you will build it in small steps. You will start by deploying the PHP app on a single EC2 instance and then step by step, you will add fault tolerance, scalability, content security, ease of deployment and network security. Each step is a chapter in the book, and you will be able to work on a chapter independently of others. You will develop strong AWS skills as you work through these steps. In the final chapter, you will put everything you have learned together, and build a complete stack. The stack will be a concrete achievement that you can showcase in your resume, and talk about in your job interviews.
Before you implement a step, read the chapter’s discussion section to understand what you will do and why. For instance, you will understand how EC2 auto-scaling groups help with cost efficiency, not just with scalability. Or how Elastic Beanstalk makes it easier to deploy application updates frequently. So, you will not just develop skills as you work on these steps, you will also gain a deeper understanding of architectural concepts and best practices, and of AWS services. For this reason, this book is good preparation for the AWS certification exams.
I hope you are