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

feat: Support providing API key from an environment variable #20

Merged
merged 1 commit into from
Feb 11, 2024

Conversation

siketyan
Copy link
Contributor

This pull request proposes to add support of NEXTDNS_API_KEY environment variable for providing the API key to the provider. We can now run Terraform with NEXTDNS_API_KEY=xxx terraform apply without writing provider "nextdns" {} block. This is useful especially when running this provider on CI.

Note that the environment variable will be preferred over provider.nextdns.api_key.

@amalucelli
Copy link
Owner

Thanks for the improvement!

@amalucelli amalucelli merged commit c794a0e into amalucelli:main Feb 11, 2024
3 checks passed
@siketyan siketyan deleted the feat/api-key-from-env branch February 11, 2024 15:44
@siketyan
Copy link
Contributor Author

Thank you for your quick review and the nice provider!

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

Successfully merging this pull request may close these issues.

2 participants