Reputation: 693
I have deployed an application on EB with my own AWS account, and have done the same with another one.
I don't know how to switch out of my command line eb cli account. There are no eb CLI options to switch profiles like the normal AWS CLI...
Thanks!
Upvotes: 0
Views: 142
Reputation: 78890
Use named profiles via eb --profile x
to use a specific profile from your AWS credentials file.
Or you can use multiple, distinct credentials files (see here) and change the AWS_CREDENTIAL_FILE
environment variable to point to the relevant credentials file. You could even write a couple of shell scripts such as eb-project1
and eb-project2
that each export/set the relevant AWS_CREDENTIAL_FILE
value and then simply execute eb
so that you don't have to switch credentials manually - just run eb-project1
or eb-project2
as needed instead of running eb
.
Upvotes: 2