Hello!
Thanks for an awesome project! We are using awsu for authentication for our aws mfa setup. Now we're expanding operations and are going to set up an aws account in a different region. We currently use awsu to switch profiles between aws accounts with profiles. We would like for awsu to also manage the region differences, which it seems not to do at the moment:
➜ ~ awsu -p dev-rp-prod
export AWSU_EXPIRES=2021-08-23T10:21:48+02:00
export AWS_ACCESS_KEY_ID=AS...GA
export AWS_SECRET_ACCESS_KEY=CZv....73
export AWS_SESSION_TOKEN=Fw....0bA==
In order to handle regions, awsu would also set the env var "AWS_DEFAULT_REGION". In the AWS config file format this should be called "region": https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html. In "config" we have
[default]
region = eu-west-1
output = json
If we could do something like
[us]
region = us-east-1
output = json
[dev-rp-us-prod]
mfa_serial = arn:aws:iam::815...4:mfa/username-aws
role_arn = arn:aws:iam::815....4:role/MyRole
source_profile = us
That would be awesome. Thoughts?
Hello!
Thanks for an awesome project! We are using awsu for authentication for our aws mfa setup. Now we're expanding operations and are going to set up an aws account in a different region. We currently use awsu to switch profiles between aws accounts with profiles. We would like for awsu to also manage the region differences, which it seems not to do at the moment:
In order to handle regions, awsu would also set the env var "AWS_DEFAULT_REGION". In the AWS config file format this should be called "region": https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html. In "config" we have
If we could do something like
That would be awesome. Thoughts?