Devesh Agrawal
Devesh Agrawal

Reputation: 9212

How can i pass new keys in eb init command

I run this command and it asked for the access key and secret access key.

eb init -p python-3.7 -r us-east-2 barebone-flask-rest-api

but I got error - User: is not authorized to perform: elasticbeanstalk: CreateApplication on resource

I created a new user with the desired permission.

And run the command again. But this time it is not asking for keys. and using the old ones on it's own. How can I pass new keys?

Upvotes: 0

Views: 273

Answers (1)

Marcin
Marcin

Reputation: 238139

If you added the new user's profile under new name to your AWS credentials file, then you have to explicitly specify the --profile name. For example:

eb init -p python-3.7 -r us-east-2 barebone-flask-rest-api --profile new-user

Upvotes: 1

Related Questions