AWS – Core for DevOps

EC2, S3, IAM, CLI, deployments, and monitoring.

Core Services

EC2, S3, IAM, RDS, Lambda, CloudWatch.

CLI Setup & Commands

aws configure
aws ec2 run-instances --image-id ami-123 --instance-type t3.micro
aws s3 cp site s3://my-site/ --recursive

Usage

configure sets credentials and region; ec2 run-instances launches a VM; s3 cp uploads/downloads files to S3.

IAM Best Practices

Use least privilege, IAM roles over access keys, and rotate credentials.

Host Static on S3

aws s3 mb s3://my-site
aws s3 sync ./public s3://my-site --acl public-read
# Configure static website hosting in S3 console or via CLI

Deploy to EC2

# Security group
aws ec2 create-security-group --group-name web --description web
# Install app on EC2 via SSH and open port 80

Project: CI/CD GitHub → CodePipeline → EC2

Connect GitHub repo to CodePipeline, build with CodeBuild, deploy artifacts to EC2 via CodeDeploy.