aws cli upload to s3 bucket of another account code example
Example 1: aws cli s3 bucket list
aws s3api list-buckets --query "Buckets[].Name"
Example 2: aws cli s3 list buckets
aws s3api list-buckets --query "Buckets[].Name"
aws s3api list-buckets --query "Buckets[].Name"
aws s3api list-buckets --query "Buckets[].Name"