![]() AWS's response assumes that I want to query it as the default user (NOT user2) (3.) However, when I subsequently (that is, after entering "export AWS_PROFILE=user2") try something like: aws s3 ls So I know that the AWS CLI and the user2 profile are both working on my computer. (2.) The following command works: aws s3 ls -profile user2 (1.) After successfully configuring a second profile for the AWS CLI, I unsuccessfully tried to set the profile to user2 in my bash session with the following command: export AWS_PROFILE=user2 Updated answer (): For AWS CLI v1, do this: export AWS_DEFAULT_PROFILE=user2įor AWS CLI v2, the following will work: export AWS_PROFILE=user2
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |