AWS CLI
Amazon Web Services command-line client (aws ...) — config, S3, EC2, EKS basics.
Official docsConfigure & identity
aws configureInteractive setup of the default profile (key, secret, region, output).
aws configure --profile workSet up a named profile alongside default.
aws sts get-caller-identityWho am I right now? Returns the account, ARN, user/role.
AWS_PROFILE=work aws sts get-caller-identityUse a named profile for one command without exporting.
aws configure listShow how each config value is being resolved (env vs profile vs file).
S3
aws s3 lsList buckets you can see.
aws s3 ls s3://my-bucket/path/List objects under a prefix.
aws s3 cp file.txt s3://my-bucket/path/Upload a file.
aws s3 cp s3://my-bucket/path/file.txt .Download a file.
aws s3 sync ./dist s3://my-bucket/site --deleteSync a local dir to a bucket prefix; --delete removes orphans.
aws s3 mb s3://new-bucket --region eu-central-1Make a new bucket.
EC2
aws ec2 describe-instances --output tableList instances in the current region.
aws ec2 describe-instances --query "Reservations[].Instances[].[InstanceId,State.Name,Tags[?Key=='Name'].Value|[0]]" --output tableCustom columns: id, state, Name tag.
aws ec2 start-instances --instance-ids i-0abcdefBoot a stopped instance.
aws ec2 stop-instances --instance-ids i-0abcdefStop a running instance (charges stop, EBS storage charges continue).
aws ec2 describe-security-groups --output tableSecurity groups in the current region.
EKS & IAM
aws eks list-clusters --output tableEKS clusters in the current region.
aws eks update-kubeconfig --name my-cluster --region eu-central-1Merge an EKS cluster into ~/.kube/config.
aws iam list-users --output tableIAM users.
aws iam list-roles --output tableIAM roles.
aws iam get-role --role-name <role>Trust policy + creation metadata for a role.