DEV Community

moogoo
moogoo

Posted on • Edited on

3 3

AWS command-line

some drafts for aws command...

Configure Account

ref: Named profiles for the AWS CLI

check ~/.aws/config for your profile settings.

get credentials from AWS console, and add key and secret_key to ~/.aws/credentials

change account (profile reference to .aws/config)

$ export AWS_PROFILE=my-profile 
Enter fullscreen mode Exit fullscreen mode

S3

check bucket list from specific account

$ aws s3 ls # not list, only ls
Enter fullscreen mode Exit fullscreen mode

dump bucket

$ aws s3 sync s3://my-bucket my-local-dir
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay