-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show export AWS environment variables in current shell #126
Comments
Happy to look at any PR, but the FYI credentials are cached in the normal place (~/.aws/credentials). It prints the profile name to the command line already, something like:
So you can just set that as your aws profile when running terraform, i.e.,
If you want to just override the
|
Thanks for that bit of information. The —profile argument wasn’t too clear in the documentation that it creates a new profile name. I made a short change() function for ~./bashrc that exports AWS_PROFILE=$1 which works very well for our needs.
Cheers,
Matthew
…Sent from my iPhone
On Jul 21, 2018, at 7:16 PM, Jonathan Chang ***@***.***> wrote:
Happy to look at any PR, but the FYI credentials are cached in the normal place (~/.aws/credentials). It prints the profile name to the command line already, something like:
123456789/OneLoginRole/your_id
So you can just set that as your aws profile when running terraform, i.e.,
AWS_PROFILE=123456789/OneLoginRole/your_id terraform your_commands
If you want to just override the default aws profile when running this command, you can just use the profile argument to this app,
onelogin-aws-login --profile default
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To have feature parity with https://github.com/onelogin/onelogin-aws-cli-assume-role , it should print out the export AWS environment variables for the user in the current shell. This also helps with Terraform users, as there is no way to specify an AWS profile.
Expected Behavior
After successful authentication, it should print out the commands to set these as the current AWS environment variables.
Current Behavior
credentials get cached in a different file
Possible Solution
print the export AWS environment variables for the user in the current shell.
Steps to Reproduce
Context (Environment)
I'm trying to run terraform with onelogin-aws-login unsuccessfully
Detailed Description
Possible Implementation
Please see pull request export_aws_variables
#126
The text was updated successfully, but these errors were encountered: