"credential_process" does not work when using "login_session" in .aws/config file
- Dominant language
- Python
- Stars
- 17.3k
- Forks
- 4.6k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 13
Description
### Describe the feature
It would be nice if "credential_process"work when using "login_session". So I don't have to type 'aws login' every time.
### Use Case
If my config file has this section:
```
[profile profile1]
login_session = awe:aws:sts::0123456789012:assumed-role/role1/user1
region = us-east-1
credential_process = aws login --profile profile1
```
so when I try to use the profile1 and my credentials expired, the command `aws login --profile profile1` is automatically invoked.
Currently we just get the message saying `Your session has expired. Please reuthenticate with 'aws login'`
### Proposed Solution
_No response_
### Other Information
_No response_
### Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### CLI version used
2.32.13
### Environment details (OS name and version, etc.)
MacOS
Contributor guide
Assessment
This issue has not been assessed yet.