Last active
August 22, 2018 19:46
-
-
Save chrismaddalena/5dfffd966a702128bcb670df4c8bc8b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Service | Description | Command | |
---|---|---|---|
IAM | Create a profile with a set of keys | aws configure --profile PROFILE_NAME | |
IAM | Get account information | aws --profile PROFILE_NAME iam get-user | |
IAM | Get attached policies for user | aws --profile PROFILE_NAME iam list-attached-user-policies --user-name USERNAME | |
IAM | Get a policy's version information | aws --profile flaws iam get-policy - policy-arn POLICY_ARN_STRING | |
IAM | Get policy details | aws --profile PROFILE_NAME iam get-policy-version --policy-arn POLICY_ARN_STRING --version-id VERSION_NUMBER | |
S3 | List contents of an S3 bucket (without creds) | aws s3 ls s3://BUCKET_NAME --no-sign-request | |
S3 | List contents of an S3 bucket (with creds) | aws s3 ls s3://BUCKET_NAME --profile PROFILE_NAME | |
S3 | Download contents of an S3 bucket | aws s3 sync s3://BUCKET_NAME/ . --no-sign-request | |
S3 | Upload a local file to a bucket | aws s3 cp MyFile.txt s3://my-bucket/path/ | |
EC2 | List EC2 snapshots for user | aws ec2 describe-snapshots --owner-id OWNER_ID --region SOME_AWS_REGION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment