The only way I know how to switch regions using the EB CLI is eb init
. This feels like a hack because in addition to selection my region, I have to re-answer a bunch of questions I've already answered.
Is there a way to just switch regions on the EB CLI without going through all the eb init
steps?
Yes. When you run
eb init
it should only ask you for the things it doesn't know. Running it a second time should do nothing. Therefore I am presuming you are runningeb init -i
which forces all the questions. You can simply useeb init --region us-east-1
to switch. It shouldn't ask you any questions.When you run
eb init
, the EB CLI will generate.elasticbeanstalk/config.yml
file inside working directory. The file format is something like:You can modify
default_region
to another valid region.