You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AWS CLI runs the command as specified in the profile and then reads data from STDOUT. The command you specify must generate JSON output on STDOUT that matches the following syntax.
Is that the case? Any workaround to get the --environment flag working when calling from an AWS named profile?
The text was updated successfully, but these errors were encountered:
AWS CLI and SDKs expect the default JSON format output from the command given as credential_process when you're using profiles. --environment is to change the output to produce shell commands that can be used with eval() to set the credentials as environment variables which is unnecessary if you're using profiles.
Thanks @bhardie-godaddy that makes sense. I have a use-case where I temporarily want the creds in the environment so I can pass them to my docker container like so:
Hi there 👋 . Thanks for making this tool, it's great.
I might be off-base, but when I try to use the
--environment
flag in myauthenticate
command from~/.aws/credentials
, I get the following error:~/.aws/credentials
This profile works fine:
~/.aws/credentials
I think that might be because credential_process expects JSON output on STDOUT?
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html
Is that the case? Any workaround to get the
--environment
flag working when calling from an AWS named profile?The text was updated successfully, but these errors were encountered: