cim icon indicating copy to clipboard operation
cim copied to clipboard

Ability to set region?

Open dave-lew99 opened this issue 8 years ago • 5 comments

Is there the ability to configure AWS region within the _cim.yml file? When using role elevation environment variables are not always set.

(Also, the ability to specify a role to elevate to, to perform the deployment would be useful)

dave-lew99 avatar Jan 18 '18 13:01 dave-lew99

Hi @dave-lew99. I use AWS_REGION environment variable, like so: AWS_REGION=us-east-1 cim lambda-publish

eetay avatar Mar 21 '18 06:03 eetay

I use the named profiles. https://docs.aws.amazon.com/cli/latest/userguide/cli-multiple-profiles.html

`cim stack-up --profile=

rgfindl avatar Mar 21 '18 15:03 rgfindl

Environment vars will work, but it's an annoying extra step - instead of simply specifying on the command / in the config file.

The profiles method doesn't work for us as our configured profile is a basic user login - we role switch to perform tasks - so there is no profile configured. It's also awkward when you switch regions regularly.

dave-lew99 avatar Mar 22 '18 09:03 dave-lew99

@dave-lew99 Sounds good. Thanks for the feedback. I'll add region to the _cim.yml.

rgfindl avatar Mar 22 '18 17:03 rgfindl

Hi @rgfindl I love this tool! Any updates on adding region to _cim.yml?

dasgoll avatar Mar 13 '20 14:03 dasgoll