Also fixes a bug with --exec where existing AWS_ env vars are passed through from the callers environment, this can mean that AWS_PROFILE may be set and not overwritten
I now strip the AWS_PROFILE env var from the pass through env
Why?
How did you test it?
Usage can be either with --exec or just a regular profile
assume base-profile --chain arn:aws:iam::12345678912:role/aws-josh --exec -- aws sts get-caller-identityassume base-profile --chain arn:aws:iam::12345678912:role/aws-josh
What changed?
Fixes #506
Also fixes a bug with --exec where existing AWS_ env vars are passed through from the callers environment, this can mean that AWS_PROFILE may be set and not overwritten
I now strip the AWS_PROFILE env var from the pass through env
Why?
How did you test it?
Usage can be either with --exec or just a regular profile
assume base-profile --chain arn:aws:iam::12345678912:role/aws-josh --exec -- aws sts get-caller-identity
assume base-profile --chain arn:aws:iam::12345678912:role/aws-josh
Potential risks
Is patch release candidate?
Link to relevant docs PRs