Skip to content
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

Passing credentials without using environment variables #65

Closed
richardsonky opened this issue Feb 24, 2020 · 4 comments
Closed

Passing credentials without using environment variables #65

richardsonky opened this issue Feb 24, 2020 · 4 comments

Comments

@richardsonky
Copy link

We are wanting to store our credentials in Vault and then pass them to the infoblox module instead of using environment variables. Is there a way to do this today?

@saiprasannasastry
Copy link
Contributor

https://www.terraform.io/docs/commands/cli-config.html
have a look at this

@richardsonky
Copy link
Author

I think i figured out the way to do this. This question might just be because i'm new to terraform, but this method worked. I created a provider called "infoblox" and passed the credentials in using username, password, and server. I'm using vault to do it instead of clear text like below, but this should help anyone else that is trying to do something similar. Add this to your main.tf. Can you add it to your docs so people know they can use something outside of environment variables?

provider "infoblox"{
username = "username"
password = "password"
server = "fqdnofserver"
}

@pearcec
Copy link
Contributor

pearcec commented Apr 14, 2020

I would close this issue. The website docs has this documented here.

@somashekhar
Copy link
Contributor

Closing it with above discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants