aws / aws/aws-cli

Support for running a subprocess with AWS role assumed

Open
#4,323 3 comments 7 reactions 0 assignees View on GitHub
assume-role configuration feature-request p3
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

Unfortunately, some computer programs don't have good support for assuming roles (particularly with MFA). It would be helpful if the `aws` CLI had support for running a subprocess with a role pre-assumed and the correct env vars set. You could imagine usage like:

```
$ aws --profile=admin exec terraform apply
```

This feature request was inspired by this comment: https://github.com/terraform-providers/terraform-provider-aws/issues/5078#issuecomment-499855094

Which requires playing in the CLI's implementation details, which seems unfortunate. If this functionality was simply included with `aws`, it'd be a real time saver.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.