Snippets
Snippets / Tags
aws-cli
5 aws-cli code snippets across 1 language. Copy-paste solutions from production code.
5
snippets
aws cli
5 snippetsDebug Which AWS Identity You Are Using
Use aws sts get-caller-identity to see which AWS account, IAM user, and role your CLI is currently authenticated as.
aws-cliiamsts+2
BEGINNERApr 20, 2026
Fetch and Parse a Secret from AWS Secrets Manager
Use aws secretsmanager get-secret-value with jq to fetch a JSON secret and pipe individual fields into shell variables.
aws-clisecrets-managerjq+2
BEGINNERMay 20, 2026
Generate a Presigned URL for an S3 Object
Use aws s3 presign to generate a time-limited download URL for a private S3 object. Share files without making the bucket public.
aws-clis3presigned-url+2
BEGINNERApr 28, 2026
Sync a Folder to S3 with Include and Exclude Filters
Use aws s3 sync with --exclude, --include, --dryrun, and --delete to deploy a directory to an S3 bucket safely.
aws-clis3sync+2
BEGINNERApr 8, 2026
Tail CloudWatch Logs Live with the AWS CLI
Use aws logs tail with --follow to stream a CloudWatch log group in real time. Filter, time-range, and color the output.
aws-clicloudwatchlogs+2
BEGINNERMay 10, 2026