Back to technologies
/aws
AWS CLI command reference
Useful AWS CLI commands for inspecting resources and automating deployments.
12 matches
Configuration & Identity
4 commands
aws configureSet up access key, secret, region, and output format.
aws configure listInspect the current AWS CLI configuration values.
aws sts get-caller-identityVerify which IAM identity the CLI is using.
aws sso login --profile devAuthenticate using AWS IAM Identity Center (SSO).
S3 Operations
4 commands
aws s3 lsList all accessible S3 buckets.
aws s3 cp file.txt s3://my-bucket/Upload a single file to S3.
aws s3 sync ./dist s3://my-bucket/site/Synchronize a local folder to an S3 prefix.
aws s3 rm s3://my-bucket/file.txtDelete an object from S3.
Cloud Operations
4 commands
aws ec2 describe-instancesList EC2 instance details in the current region.
aws logs tail /aws/lambda/my-function --followStream CloudWatch logs for a Lambda function.
aws cloudformation deploy --template-file template.yml --stack-name my-stack --capabilities CAPABILITY_NAMED_IAMDeploy a CloudFormation stack from the terminal.
aws ecr get-login-password | docker login --username AWS --password-stdin <account>.dkr.ecr.<region>.amazonaws.comAuthenticate Docker with Amazon ECR.