Nushell script for granted #560
Replies: 7 comments 5 replies
-
|
I've updated it to support the latest |
Beta Was this translation helpful? Give feedback.
-
|
This doesn't work when you don't enter a role i.e just run # Run assumego and collect its output
let output = with-env {GRANTED_ALIAS_CONFIGURED: "true"} {
assumego ...$args
}
let granted_output = $output | lines
let granted_status = $env.LAST_EXIT_CODEBasically don't pipe it to |
Beta Was this translation helpful? Give feedback.
-
|
Ah yeah, it looks like I did update my local script in exactly the same way you did :) I've updated the gist with what I have in case someone else stumbles upon it. |
Beta Was this translation helpful? Give feedback.
-
|
thanks! |
Beta Was this translation helpful? Give feedback.
-
|
assume <profile_name> doesn't populates $env.AWS_PROFILE variable. |
Beta Was this translation helpful? Give feedback.
-
|
Tried latest gist version 3. It works but still not populating environment variables. And verifired environment variables in same shell for both case using:
Both gives error. Means it is not populated. Am I missing anything here? Just FYI.
|
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much for this! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm a nushell user and I wanted to try out
grantedso I tried to port theassumewrapper script. This is what I came up with, in case it's useful to someone else:Beta Was this translation helpful? Give feedback.
All reactions