Aws Foundations 1753794161211
Aws Foundations 1753794161211
AWS Foundations
Chad Smith
Principal Cloud Architect
Click to edit Master title style
[Link]
AWS Best Practices: Design Principles
Click to edit Master title style
Stop guessing your capacity needs
Scale horizontally
using automation
based on metrics
AWS Best Practices: Design Principles
Click to edit Master title style
Stop guessing your capacity needs Deploy using IAC and
test full-size
Test systems at production scale environments in a cost
effective way
AWS Best Practices: Design Principles
Click to edit Master title style
Stop guessing your capacity needs
Replicate workloads at
low cost and test
Test systems at production scale impact of changes
Logical
container for
AWS
resources
Account Definition
Click to edit Master title style
AWS account
Unit of:
Organization
Billing
Access
Account Definition
Click to edit Master title style
AWS account
Root User
Unique Email
Payment Info
Contact Info
AWS Building Blocks
Click to edit Master title style
AWS Building Blocks - Course Scope
Click to edit Master title style
Amazon Resource Name (ARN)
Click to edit Master title style
Globally Unique Identifier
arn:
Amazon Resource Name (ARN)
Click to edit Master title style
Globally Unique Identifier
arn:partition
aws
aws-cn
aws-us-gov
Amazon Resource Name (ARN)
Click to edit Master title style
Globally Unique Identifier
arn:partition:service
ec2
s3
iam
Amazon Resource Name (ARN)
Click to edit Master title style
Globally Unique Identifier
arn:partition:service:region
us-east-1
eu-west-1
ap-south-1
Amazon Resource Name (ARN)
Click to edit Master title style
Globally Unique Identifier
arn:partition:service:region:account-id
0123456789012
Amazon Resource Name (ARN)
Click to edit Master title style
Globally Unique Identifier
arn:partition:service:region:account-id:resource-id
User/Chad
instance/i-XXXXXX
volume/vol-XXXXX
Click to edit
Introduction: CloudMaster
Basics title style
Global Infrastructure
Click to edit Master title style
Global Infrastructure
No services
AWS Availability Zone
Click to edit Master title style
Availability Zone
One AZ of AWS
infrastructure
City 1 City 2
Supports AZ-scope
Local Zone 1 Local Zone 2 Local Zone 1
resources
Private connectivity to
remote region
CloudFront PoPs and Regional Edge Caches
Click to edit Master title style
Embedded in ISP In the AWS network, Within AWS regional
networks peer with ISP networks networks
CloudFront PoP
CloudFront Embedded PoP
CloudFront PoP
CloudFront Embedded PoP
Dependencies: None
VPC Building Block Location
Click to edit Master title style
VPC Use Cases
Click to edit Master title style
● Isolate development and
production environments
● Host private applications
securely
● Connect on-premises data
centers to cloud
● Enable secure multi-tier
application architecture
● Control and monitor
network traffic flow
VPC Deployment
Click to edit Master title style
Availability Zone 1 Availability Zone 2
VPC
Create the VPC, including a
name and primary CIDR
range
VPC Deployment
Click to edit Master title style
Availability Zone 1 Availability Zone 2
VPC
Create subnets, in two AZs.
Public subnet Public subnet All subnets are identical at
this point
VPC Deployment
Click to edit Master title style
Availability Zone 1 Availability Zone 2
VPC
Internet gateway
Create an IGW and attach it
Public subnet Public subnet
to the VPC
VPC Deployment
Click to edit Master title style
Availability Zone 1 Availability Zone 2
VPC
Internet gateway
Create a route table, add a
route with IGW as the
Public subnet Public subnet
target, and attach to the
public subnets
Route table
VPC Deployment
Click to edit Master title style
Availability Zone 1 Availability Zone 2
VPC
Internet gateway
Create private subnets, also
Public subnet Public subnet
in two AZs
Route table
VPC
Internet gateway
Create a NAT Gateway in
Public subnet Public subnet
each public subnet
VPC
Internet gateway
Create two route tables,
each with a route to the NAT
Public subnet Public subnet
Gateway in the same AZ, and
attach to private subnets
Route table NAT gateway NAT gateway
Dependencies: None
Route 53 Building Block Location
Click to edit Master title style
Route 53 Use Cases
Click to edit Master title style
● Route workload traffic to
AWS resources
● Manage DNS for scalable
web applications
● Route users to the nearest
application endpoint
● Monitor application health
with DNS failover
● Simplify domain
registration and
management tasks
Route 53 Hosted Zone Deployment
Click to edit Master title style
Register the domain through
the AWS registrar
Register domain
Amazon Route 53
Route 53 Hosted Zone Deployment
Click to edit Master title style
Public zone
Amazon Route 53
Route 53 Hosted Zone Deployment
Click to edit Master title style
Public zone
Any records created in the
public hosted zone can be
Hosted zone Internet
resolved from all Internet
Register domain
hosts
Amazon Route 53
Route 53 Hosted Zone Deployment
Click to edit Master title style
Public zone
Private zone
Hosted zone
Amazon Route 53
Route 53 Hosted Zone Deployment
Click to edit Master title style
Public zone
Associate the private zone
with 1+ VPCs so all hosts in
Hosted zone Internet
each VPC can resolve the
Register domain
domain
Private zone
Hosted zone
Amazon Route 53
Virtual private
cloud (VPC)
DNS Health Check Deployment
Click to edit Master title style
Record Name Location Record Type Value Health Check
Requirement: Route 53
health checks require a
public-facing endpoint
DNS Health Check Deployment
Click to edit Master title style
Record Name Location Record Type Value Health Check
Service scope: AZ
VPC
Subnet
EC2 Resource Provisioning
Region
Click to edit Master title style
Availability Zone
VPC
Subnet
EC2 instance
EC2 Resource Provisioning
Region
Click to edit Master title style
Availability Zone
VPC
Subnet
EC2 instance
Tags
EC2 Resource Provisioning
Region
Click to edit Master title style
Availability Zone
VPC
Subnet
Tags Image
EC2 Resource Provisioning
Region
Click to edit Master title style
Availability Zone
VPC
Subnet
Tags Image
Key pair
Key Pair
EC2 Resource Provisioning
Region
Click to edit Master title style
Availability Zone
VPC
Subnet
Tags Image
Key pair
Key Pair
Network ENI
Security group
EC2 Resource Provisioning
Region
Click to edit Master title style
Availability Zone
VPC
Subnet
Tags Image
Key pair
Key Pair
Network ENI
Security group
Storage
OS volume
Data volume
EC2 Resource Provisioning
Region
Click to edit Master title style
Availability Zone
VPC
Subnet
Tags Image
Key pair
Key Pair
Network ENI
Security group
Storage
OS volume
Role
Click to edit
AWS Compute Master title style
Services
Acronym: None
Dependencies: None
Lambda Building Block Location
Click to edit Master title style
Lambda Use Cases
Click to edit Master title style
● Run code without managing
servers
● Automate tasks with event-
driven functions
● Process data in real-time
streams
● Build scalable backend APIs
● Replace OS-based
scheduled tasks or cron
jobs
Lambda Resource Provisioning
Click to edit Master title style
.NET
Java
[Link]
Runtime Python
Ruby
Amazon Linux
Docker
Lambda Resource Provisioning
Click to edit Master title style
.NET x86_64
Architecture
Java arm64
[Link]
Runtime Python
Ruby
Amazon Linux
Docker
Lambda Resource Provisioning
Click to edit Master title style
.NET x86_64
Architecture
Java arm64
[Link]
Ruby
Amazon Linux
Docker
Lambda Resource Provisioning
Click to edit Master title style
.NET x86_64
Architecture
Java arm64
[Link]
Ruby VPC
Amazon Linux
Docker
Lambda Resource Provisioning
Click to edit Master title style
.NET x86_64
Architecture
Java arm64
[Link]
Ruby VPC
Docker
Click to edit
AWS Compute Master title style
Services
Service scope: AZ
Dependencies: None
EC2 Building Block Location
Click to edit Master title style
EBS Use Cases
Click to edit Master title style
● Provide persistent storage for
EC2 instances
● Scale block storage volumes
dynamically
● Enable high-performance
database workloads
● Create snapshots for data
backups
● Migrate data between
availability zones
EBS Volume Types
Click to edit Master title style
Designed for smaller
data size operations in
SSD random places on the
volume
EBS Volume Types
Click to edit Master title style
● Most workloads
SSD ● IOPS bound
● Default choice
gp2 gp3
EBS Volume Types
Click to edit Master title style
● High performance
SSD workloads
● IOPS bound
gp2 gp3 io1 io2
EBS Volume Types
Click to edit Master title style
SSD
gp2 gp3 io1 io2
SSD
gp2 gp3 io1 io2
● Cost
optimized
HDD ● Throughput
st1 sc1 bound
Click to edit
AWS Storage Master title style
Services
Dependencies: None
EC2 Building Block Location
Click to edit Master title style
S3 Use Cases
Click to edit Master title style
● Store and retrieve any amount
of data
● Host static websites with high
availability
● Backup and archive critical
business data
● Share files globally with high
durability
● Enable big data analytics
workloads
S3 Resource Provisioning
Click to edit Master title style
Region Versioning
Static Website
Lifecycle Rules
Replication
Click to edit
AWS Storage Master title style
Services
Service scope: AZ
VPC
RDS Resource Provisioning
Click to edit Master title style
Region Availability Zone 1 Availability Zone 2
VPC
Subnet 1 Subnet 2
RDS Resource Provisioning
Click to edit Master title style
Region Availability Zone 1 Availability Zone 2
VPC
Subnet group
Subnet 1 Subnet 2
RDS Resource Provisioning
Click to edit Master title style
Region Availability Zone 1 Availability Zone 2
VPC
Subnet group
Subnet 1 Subnet 2
Security group
Amazon RDS
instance
RDS Resource Provisioning
Click to edit Master title style
Region Availability Zone 1 Availability Zone 2 Engine type and version
VPC
Subnet group Authentication and encryption
Subnet 1 Subnet 2
Multi-AZ configuration
Amazon RDS
instance
Monitoring configuration
● MySQL
● PostgreSQL
● Oracle DB
● Microsoft SQL Server
● MariaDB
● Db2
Click to edit
AWS Database Master title style
Services
Acronym: None
Dependencies: None
DynamoDB Building Block Location
Click to edit Master title style
DynamoDB Use Cases
Click to edit Master title style
● Serverless NoSQL database for
apps
● Scale automatically with
demand
● Low-latency access to data
● Store user profiles and
sessions
● Handle high-traffic workloads
efficiently
DynamoDB Resource Provisioning
Click to edit Master title style
Region Key-value and document models
Scale to zero
Global tables
Partition key is the most
Table important parameter
Secondary indexes
Take-home exercises!
Click to edit Master title style
Dependencies: None
IAM Building Block Location
Click to edit Master title style
IAM Use Cases
Click to edit Master title style
● Control access to AWS
resources
● Manage user permissions
securely
● Utilize multi-factor
authentication
● Assign roles to AWS resources
● Implement least-privilege
permissions
IAM User
Click to edit Master title style
● Principal identity
● Direct permissions
and/or group
permissions
● Sign-in credentials
(console)
● Access keys (CLI/SDK)
● MFA
IAM Group
Click to edit Master title style
● IAM Identity
● Associated with
permissions
● Assumed by other
principals
IAM Permission Policy Attachment
Click to edit Master title style
Inline policies are a
parameter of the
user or group, not
a separate
resource
Inline
IAM Permission Policy Attachment
Click to edit Master title style
Managed
permission policies
are standalone
resources
Customer-managed AWS-managed
IAM Permission Policy Attachment
Click to edit Master title style
Customer managed
policies can be
edited
AWS managed
policies cannot be
edited
Customer-managed AWS-managed
IAM Permission Policy Attachment
Click to edit Master title style
Both managed
policy types can be
associated with an
IAM User
Customer-managed AWS-managed
IAM Permission Policy Attachment
Click to edit Master title style
Both managed
policy types can be
associated with an
IAM Group
Customer-managed AWS-managed
IAM Permission Policy Attachment
Click to edit Master title style
Associate
permissions with
user through
group membership
Customer-managed AWS-managed
Putting It All Together 1
Click to edit Master title style
Admins
(group) Administrator
(permission policy)
csmith
(user)
Putting It All Together 1
Click to edit Master title style
Admins
(group) Administrator
(permission policy)
csmith
(user)
Sign-in
credentials
MFA token
Access key
Putting It All Together 1
Click to edit Master title style
Admins
(group) Administrator
(permission policy)
csmith
(user)
Sign-in
Create a cost
credentials budget AWS Cost Explorer
MFA token
Access key
Putting It All Together 1
Click to edit Master title style
Admins
(group) Administrator
(permission policy)
csmith
(user)
Sign-in
credentials
MFA token
Empty an S3
bucket
Access key Amazon S3
Putting It All Together 2
Click to edit Master title style
Developers
(group) PowerUser
(permission policy)
dev1
(user)
Putting It All Together 2
Click to edit Master title style
Developers
(group) PowerUser
(permission policy)
dev1
(user)
Sign-in
credentials
MFA token
Access key
Putting It All Together 2
Click to edit Master title style
Developers
(group) PowerUser
(permission policy)
dev1
(user)
Sign-in
credentials
MFA token
Deploy a code
update
Access key AWS CodeDeploy
Putting It All Together 2
Click to edit Master title style
Developers
(group) PowerUser
(permission policy)
dev1
(user) View the
Sign-in deployment
credentials
logs Amazon CloudWatch
MFA token
Access key
Putting It All Together 3
Click to edit Master title style
App1Role
(Role) App1Policy
(permission policy)
EC2 instance
App1 runtime
Putting It All Together 3
Click to edit Master title style
App1Role
(Role) App1Policy
(permission policy)
EC2 instance
App1 runtime
Temporary security
credential
Putting It All Together 3
Click to edit Master title style
App1Role
(Role) App1Policy
(permission policy)
EC2 instance
App1 runtime Generate real-
Temporary security time inference
credential
Amazon SageMaker
Click to edit
AWS Security Master title style
Services
Acronym: None
Dependencies: None
CloudTrail Building Block Location
Click to edit Master title style
CloudTrail Use Cases
Click to edit Master title style
● Track AWS API events and
outcomes
● Monitor account security and
compliance
● Investigate operational and
security incidents
● Retain event logs for auditing
● Detect unauthorized AWS
resource changes
CloudTrail Basics
Click to edit Master title style
Acronym: None
Dependencies: None
GuardDuty Building Block Location
Click to edit Master title style
GuardDuty Use Cases
Click to edit Master title style
VPC
Public subnet
Instance
GuardDuty Example
Click to edit Master title style
AWS public IP ranges can be
downloaded and scanned, then
attacked
VPC
Public subnet
Instance
GuardDuty Example
Click to edit Master title style
VPC flow logs capture this
network flow information
VPC
Public subnet
VPC
Public subnet
VPC
Public subnet
Acronym: None
Dependencies: None
Inspector Building Block Location
Click to edit Master title style
Inspector Use Cases
Click to edit Master title style
NAT gateway
Private
Instance
Inspector EC2 Configuration Example
Click to edit Master title style
VPC
Internet gateway The instance requires
the Systems Manager
Public
agent and appropriate
permissions
NAT gateway
Private
NAT gateway
SSM Endpoint
Acronym: None
Dependencies: None
Q Developer Building Block Location
Click to edit Master title style
Q Developer Use Cases
Click to edit Master title style
● Generate code with AI
assistance
● Debug and explain complex
code
● Optimize AWS architecture
recommendations
● Automate CI/CD pipeline
troubleshooting
● Translate legacy code to
modern
Click to editServices
AWS Developer Master title style
Acronym: None
Dependencies: None
CodeDeploy Building Block Location
Click to edit Master title style
CodeDeploy Use Cases
Click to edit Master title style
● Automate application
deployments quickly
● Roll back failed updates
automatically
● Deploy to EC2, Lambda, or ECS
● Track deployment health in
real-time
● Integrate with CI/CD pipelines
seamlessly
AWS CI/CD Pipeline - CodeDeploy Context
Click to edit Master title style
CodeDeploy
AWS CodePipeline
orchestrates quality
deployments
Click to editServices
AWS Developer Master title style
Dependencies: None/VPC
ECS Building Block Location
Click to edit Master title style
ECS Use Cases
Click to edit Master title style
Cluster
ECS Infrastructure - Cluster
Click to edit Master title style
1+ running containers
with optional load
balancing and auto
scaling
Cluster
Service
ECS Infrastructure - Cluster
Click to edit Master title style
Single running
container
Cluster
Service Task
ECS Infrastructure - Launch Type
Click to edit Master title style
Deploy tasks to EC2
EC2
Cluster
Service Task
ECS Infrastructure - Launch Type
Click to edit Master title style
Deploy tasks to
EC2 Fargate
Cluster
Fargate
Service Task
ECS Infrastructure - Launch Type
Click to edit Master title style
Deploy tasks on-
EC2 premises
Cluster
Fargate
Service Task
Corporate
data center
ECS Infrastructure - Task Definition
Click to edit Master title style
Task Definitions
contain all container
parameters and
EC2 resource
requirements
Cluster
Fargate
Service Task
Corporate
Task data center
Definition
Click to editServices
AWS Developer Master title style
Implement traditional
monitoring with CloudWatch
Amazon CloudWatch
Click to edit Master title style
Observe and monitor resources and applications on AWS, on premises, and on
other clouds
Acronym: None
Dependencies: None
CloudWatch Building Block Location
Click to edit Master title style
CloudWatch Use Cases
Click to edit Master title style
● Monitor AWS resource
performance metrics
● Set alarms for operational
thresholds
● Collect and analyze log data
● Automate responses to system
events
● Visualize metrics with custom
dashboards
Default CloudWatch Metrics
Click to edit Master title style
CPUUtilization
NetworkIn
CPUCreditBalance
Default CloudWatch Metrics
Click to edit Master title style
VolumeReadBytes
VolumeQueueLength
BurstBalance
Default CloudWatch Metrics
Click to edit Master title style
HTTPCode_ELB_5XX_Count
ProcessedBytes
RuleEvaluations
Default CloudWatch Metrics
Click to edit Master title style
DatabaseConnections
FreeStorageSpace
ReplicaLag
Default CloudWatch Metrics
Click to edit Master title style
Invocations
Errors
Throttles
Click to editServices
AWS Monitoring Master title style
Dependencies: None
SNS Building Block Location
Click to edit Master title style
SNS Use Cases
Click to edit Master title style
● Send real-time notifications to
subscribers
● Trigger Lambda functions from
events
● Alert on CloudWatch alarms
automatically
● Fan-out messages to multiple
endpoints
● Integrate with mobile push
notifications
Amazon Q Developer in Chat Applications (Chatbot)
Click to edit Master title style
Monitor, operate, and troubleshoot your AWS resources with interactive
ChatOps
Acronym: None
Dependencies: None
Chatbot Building Block Location
Click to edit Master title style
Chatbot Use Cases
Click to edit Master title style
● Monitor alerts in Slack/Teams
● Execute AWS CLI commands
conversationally
● Troubleshoot incidents via
chat
● Fetch CloudWatch metrics on-
demand
● Manage AWS resources
without consoles
Chatbot Workflow
Click to edit Master title style
Important DevOps
notification
Teams
Chime
Teams
Chime
Teams
AWS Cloud
Chime
Acronym: None
Dependencies: None
Config Building Block Location
Click to edit Master title style
Config Use Cases
Click to edit Master title style
● Track AWS resource
configurations
● Assess compliance against
rules
● Audit configuration changes
historically
● Detect insecure resource
settings
● Trigger remediation for
misconfigurations
AWS EventBridge
Click to edit Master title style
Build event-driven applications at scale across AWS, existing systems, or SaaS
applications
Acronym: None
Dependencies: None
EventBridge Building Block Location
Click to edit Master title style
EventBridge Use Cases
Click to edit Master title style
● Build event-driven serverless
applications
● Deliver events to multiple
targets
● Schedule automated
tasks/cron jobs
● Stream events between AWS
services
● React to system state changes
EventBridge Event Source Examples
Click to edit Master title style
CloudTrail logs,
including data events
EventBridge Event Source Examples
Click to edit Master title style
AWS Health and Health
Abuse events
EventBridge Event Source Examples
Click to edit Master title style
Config rule compliance
events
EventBridge Event Source Examples
Click to edit Master title style
CloudWatch alarm
state change
EventBridge Event Source Examples
Click to edit Master title style
Interval schedule or
cron expression
EventBridge Rule Details
Click to edit Master title style
EventBridge rules are
JSON filters which can
match 1+ event
elements
EventBridge
Rule
EventBridge Target Options
Click to edit Master title style
SNS topic delivery
EventBridge
Rule
EventBridge Target Options
Click to edit Master title style
Asynchronous Lambda
function invocation
EventBridge
Rule
EventBridge Target Options
Click to edit Master title style
Various EC2 actions
EventBridge
Rule
EventBridge Target Options
Click to edit Master title style
Invoke a Step Function
workflow
EventBridge
Rule
EventBridge Target Options
Click to edit Master title style
Deliver to Kinesis data
stream
EventBridge
Rule
Click to editServices
AWS Monitoring Master title style
● Expires after 12
● Never expires
months ● Short term
● Small usage rate
● Small usage rate ● Try before you buy
● Permanent
● Specific resource ● Specific services
discount
types
Acronym: None
Dependencies: None
Cost Explorer Building Block Location
Click to edit Master title style
Cost Explorer Use Cases
Click to edit Master title style
Acronym: None
Dependencies: None
Budgets Building Block Location
Click to edit Master title style
Budgets Use Cases
Click to edit Master title style
Acronym: None
Dependencies: None
Budgets Building Block Location
Click to edit Master title style
SageMaker Use Cases
Click to edit Master title style
Implement Generative AI
workloads using Bedrock
Amazon Bedrock
Click to edit Master title style
The easiest way to build and scale generative AI applications with foundation
models
Acronym: None
Dependencies: None
Bedrock Building Block Location
Click to edit Master title style
Bedrock Use Cases
Click to edit Master title style
● Build generative AI
applications
● Access foundation models via
API
● Customize models with your
data
● Deploy AI agents easily
● Ensure responsible AI usage
Click to edit
AWS AI/ML Master title style
Services
VPC
VPC
Router
If the request requires
Click to edit Master title style
external data, an agent
will pull from external
APIs as needed
Router
Supervisor
This can include web
Click to edit Master title style searches, or APIs
returning company
financials or stock
history
Router
Web Search
Supervisor
Financials
Multi-agent
Stock History
Click to edit Master title style
Requests can search
earnings call audio
Audio Search
Router
Web Search
Supervisor
Financials
Multi-agent
Stock History
To achieve this, a
Click to edit Master title style lambda function delivers
the audio file to Bedrock
Data Automation
Audio Search
Router
Web Search
Supervisor
Financials
Multi-agent
Stock History
Click to edit Master title style
The audio is converted
to text and uploaded to
S3
Audio Search
Router
Web Search
Supervisor
Financials
Multi-agent
Stock History
The S3 bucket is used as
Click to edit Master title style a data source for a
Bedrock knowledge
base with AOSS
Audio Search
Router
Web Search
Supervisor
Financials
Multi-agent
Stock History
A parallel agent allows
Click to edit Master title style for earnings call
presentation search,
converted to images,
then text
Audio Search
Router
Image Search
Web Search
Supervisor
Financials
Multi-agent
Stock History
Report Writer
Audio Search
Router
Image Search
Web Search
Supervisor
Financials
Multi-agent
Stock History
Report Writer
The final report
Click to edit Master title style Image Generation combines images and
text, appearing human
analyst prepared
Final Report
Report
Audio Search
Router
Image Search
Web Search
Supervisor
Financials
Multi-agent
Stock History
Click to edit Master title style
Q&A