akshaykarle / terraform-provider-mongodbatlas

Terraform provider for MongoDB Atlas
Mozilla Public License 2.0
123 stars 54 forks source link

Configure provider from environment variables #70

Closed chris-scentregroup closed 5 years ago

chris-scentregroup commented 5 years ago

Would it be ok to do a PR to optionally have the provider use environment variables for the configuration, something like MONGODB_ATLAS_PUBLIC_API_KEY and MONGODB_ATLAS_PUBLIC_API_KEY?

dpiddockcmp commented 5 years ago

Hi Chris.

This is already supported! 😄

MONGODB_ATLAS_USERNAME and MONGODB_ATLAS_API_KEY. Documentation here: https://github.com/akshaykarle/terraform-provider-mongodbatlas/blob/master/website/docs/index.html.markdown#environment-variables

chris-scentregroup commented 5 years ago

Oh that is great, but its missing from the main readme? I think thats likely the problem..

akshaykarle commented 5 years ago

Hey @chris-scentregroup closing this as it works as expected. Thank you for the doc suggestion, PRs would be welcome :)