- How to Access AWS Environments (AWS Console, API, SDK)
- Navigating the AWS Console
- Regions
- Services selection
- Documentation
- Service Quotas
- Networking Concept (Intro to VPC's)
- Default VPC
- Components (VPC, Availability Zones, CIDR ranges, Security Groups, Route Tables, IGW, NAT-GW)
- Examples
- Build a VPC
- Compute options (EC2, Containers, Serverless)
- Intro to EC2
- EC2 Instance Types
- Start EC2 instance and install a web-server (user data section):
- Save Private Key
#!/bin/bash
yum update -y
yum install -y httpd.x86_64
systemctl start httpd.service
systemctl enable httpd.service
echo "Hello World from $(hostname -f)" > /var/www/html/index.html
- Configure ALB and target group inkl. health check to /index.html
- Create an EC2 launch template
- Create an Auto Scaling Group + ALB + Target Group via the ASG dialog
- Do tests on shutting down instances
- Check CloudWatch
- Documentation
- Create a simple index.html via Cloudshell and copy to the target bucket
echo "Hello AWS Enablement Day" > index.html
aws s3 cp index.html s3://<yourbucketname>
- Enable static website hosting
- Configure and modify S3 Bucket Policy
S3 Bucket Policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "<bucketarn>/*"
}
]
}
- optional: Add a Content Delivery Network (CDN - Amazon CloudFront)