sematext / terraform-provider-sematext

Sematext Terraform Provider
https://sematext.com
Mozilla Public License 2.0
3 stars 1 forks source link

Add sematext_api_key param to provider {} block #56

Closed Invincibear closed 1 week ago

Invincibear commented 2 weeks ago

This is related to https://github.com/sematext/terraform-provider-sematext/issues/55

This PR adds a new sematext_api_key to the provider {} block to enable using API keys retrieved from external sources such as key vaults, variables, files, or (unrecommended) hard-coded values.

It still uses the ENV variable SEMATEXT_API_KEY by default, which if left blank will use the new new sematext_api_key provider parameter. I did not update the resource docs template to include the new sematext_api_key parameter in the example provider {} blocks because it might promote people saving credentials to their source code without sufficient warning about safety surrounding protecting credentials.