AWS (Amazon Web Services)
Overview
AWS is a broad cloud platform offering compute (EC2, Lambda), storage (S3, EBS), databases, networking (VPC), and identity (IAM), among hundreds of services. The AWS CLI (aws) is the unified command-line tool for managing these resources and scripting automation. Read this when you need to provision, manage, or script AWS infrastructure.
Official sources
Install / setup
Linux (x86_64), copied verbatim from the official install page:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
Core concepts
- Regions & Availability Zones: resources live in a region, which contains isolated AZs for fault tolerance.
- IAM: identities (users, roles) and policies that grant least-privilege permissions to AWS actions and resources.
- EC2 & Lambda: virtual machines for long-running compute vs. event-driven serverless functions.
- S3: object storage organized into buckets with fine-grained access policies.
- VPC: a logically isolated virtual network with subnets, route tables, and security groups.
- Credentials & profiles: the CLI resolves credentials from environment variables, shared config/credentials files, and named profiles.
Best practices
- Grant least-privilege IAM policies and prefer roles over long-lived access keys (per AWS IAM best practices).
- Avoid using the account root user for everyday tasks; create scoped IAM identities instead.
- Scope resources to the correct region and use multiple AZs for high availability.
- In CI, use short-lived role credentials (e.g. OIDC-assumed roles) rather than embedding static keys.
Common pitfalls
- Running a CLI command with no/incorrect
--region or profile → it targets the wrong region or fails to find resources.
- Over-broad IAM policies (
Action: "*") → security risk; scope to specific actions and resources.
- Public S3 bucket misconfiguration → unintended data exposure; verify bucket policies and Block Public Access.
Examples
# Configure credentials and a default region
aws configure
# List S3 buckets and copy a file
aws s3 ls
aws s3 cp ./report.csv s3://my-bucket/report.csv
Further reading
Related skills
- ../gcp — comparable hyperscale cloud platform
- ../kubernetes — container orchestration often run on AWS (EKS)
1---2name: aws3description: Amazon Web Services cloud platform and AWS CLI; consult for compute, storage, networking, IAM, and scripting AWS resources.4domain: stack5category: infra6tags: [cloud, aws, iam, ec2, s3, cli]7official_sources:8 - https://docs.aws.amazon.com/9 - https://github.com/aws/aws-cli10verified: 2026-06-1611metadata:12 source: https://skillmd.com/skills/gabriel7silva/aws13---1415# AWS (Amazon Web Services)1617## Overview18AWS is a broad cloud platform offering compute (EC2, Lambda), storage (S3, EBS), databases, networking (VPC), and identity (IAM), among hundreds of services. The AWS CLI (`aws`) is the unified command-line tool for managing these resources and scripting automation. Read this when you need to provision, manage, or script AWS infrastructure.1920## Official sources21- Docs: https://docs.aws.amazon.com/22- Repo (AWS CLI): https://github.com/aws/aws-cli23- CLI install: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html2425## Install / setup26Linux (x86_64), copied verbatim from the official install page:27```bash28curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"29unzip awscliv2.zip30sudo ./aws/install31```3233## Core concepts34- Regions & Availability Zones: resources live in a region, which contains isolated AZs for fault tolerance.35- IAM: identities (users, roles) and policies that grant least-privilege permissions to AWS actions and resources.36- EC2 & Lambda: virtual machines for long-running compute vs. event-driven serverless functions.37- S3: object storage organized into buckets with fine-grained access policies.38- VPC: a logically isolated virtual network with subnets, route tables, and security groups.39- Credentials & profiles: the CLI resolves credentials from environment variables, shared config/credentials files, and named profiles.4041## Best practices42- Grant least-privilege IAM policies and prefer roles over long-lived access keys (per AWS IAM best practices).43- Avoid using the account root user for everyday tasks; create scoped IAM identities instead.44- Scope resources to the correct region and use multiple AZs for high availability.45- In CI, use short-lived role credentials (e.g. OIDC-assumed roles) rather than embedding static keys.4647## Common pitfalls48- Running a CLI command with no/incorrect `--region` or profile → it targets the wrong region or fails to find resources.49- Over-broad IAM policies (`Action: "*"`) → security risk; scope to specific actions and resources.50- Public S3 bucket misconfiguration → unintended data exposure; verify bucket policies and Block Public Access.5152## Examples53```bash54# Configure credentials and a default region55aws configure5657# List S3 buckets and copy a file58aws s3 ls59aws s3 cp ./report.csv s3://my-bucket/report.csv60```6162## Further reading63- https://docs.aws.amazon.com/cli/latest/userguide/ — AWS CLI user guide64- https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html — IAM best practices6566## Related skills67- ../gcp — comparable hyperscale cloud platform68- ../kubernetes — container orchestration often run on AWS (EKS)