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.
This is related to https://github.com/sematext/terraform-provider-sematext/issues/55
This PR adds a new
sematext_api_key
to theprovider {}
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 newsematext_api_key
parameter in the exampleprovider {}
blocks because it might promote people saving credentials to their source code without sufficient warning about safety surrounding protecting credentials.