Granted Not Exporting AWS_PROFILE Env Variable (WSL2/Ubuntu/Nushell/Devbox) #931
Unanswered
dn-jmp
asked this question in
Issue Triage
Replies: 1 comment
-
|
The script generated by this human here has made things populate appropriately. Would love Nushell support baked in. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
When using
assumeto assume a profile, everything works as expected, except the export of the AWS_PROFILE environment variable. This causes the need to use the--profileflag with anyawsCLI commands. Additionally, it seems to be what many custom prompt tools use to detect and display the profile in use.I am using Windows 11, but am doing this in:
WSL2 > Ubuntu 24.04 LTS > Nushell > inside a Devbox shell
I don't know if it's related to Nushell or Devbox, or if it's something with Ubuntu because I found this other discussion that mentions Ubuntu 24.04 (#686) that seems similar.
Expected Behavior
Custom prompt tooling (Starship in this case) can detect the profile in use by reading the exported environment variable. AWS CLI able to be used without
--profileargument.Actual Behavior
No environment variable present, thus prompt tooling and the AWS CLI don't work as expected.
Reproduction Steps
Install WSL2 in Win 11
Install Ubuntu 24.04
Install Nushell and set as default shell
Install Devbox
Add awscli2 and granted packages to Devbox
Install Starship
Configure granted SSO and populate ~/.aws/config with profiles (
granted populate)assumea roleaws sts get-caller-identitywill fail due to no profile env variableStarship won't detect profile in use
Granted Logs
No response
Granted Version
OS Version Information
Win 11 > WSL2 > Ubuntu 24.04
Minimal Granted & AWS Config Configuration
Additional Relevant Configuration
No response
I acknowledge that:
```) on separate lines.Beta Was this translation helpful? Give feedback.
All reactions