# check version aws --version # update CLI pip install --upgrade awscli # list S3 buckets aws s3api list-buckets aws s3 ls aws s3 ls s3://dir_name/subdir_name # set up config # touch ~/.aws/config [sso-session my_session] sso_start_url = https://xxxx-login.awsapps.com/start/ sso_region = us-east-2 sso_registration_scopes = sso:account:access [profile cwb-d] output = json region = us-east-2 sso_session = my_session sso_account_id = 123456789 sso_role_name = my_role # authenticate export AWS_PROFILE=cwb-d aws sso login --sso-session my_session --no-browser
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter