aws / aws/aws-cli

Inherit `role_session_name` from the profile specified by `source_profile`

Open
#8,893 2 comments 1 reaction 0 assignees View on GitHub
configuration feature-request p2
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

### Describe the feature

To simplify AWS CLI profiles configuration it would be great to have an option to inherit `role_session_name` from the profile specified by `source_profile`.

### Use Case

We've got about 150-200 AWS CLI profiles configured to use `source_profile` to inherit credentials for assume role and each needs an individual `role_session_name` option to be set. It would drastically simplify things if `role_session_name` could be inherited from the profile supplied with `source_profile` parameter. Thanks.

### Proposed Solution

Inherit `role_session_name` from the profile specified by `source_profile`.

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CLI version used

aws-cli/2.17.42 Python/3.11.9 Linux/6.6.5-060605-generic source/x86_64.ubuntu.22

### Environment details (OS name and version, etc.)

Ubuntu 22.04.4 LTS (Jammy Jellyfish)

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.