Closed algattik closed 4 years ago
Good point @algattik, I will add this as a warning. I believe this can also happen, I have not encountered it as of now. All token creation and generation actually happens during runtime and not at provider configure but if a resource (notebook, cluster, etc.) is being created before workspace is provisioned then it will fail at runtime!
@stikkireddy I've actually encountered same issue with PAT created in MWS API, as it's expired and not refreshed. I'll be digging into it later. for now i'll probably end up doing manual terraform state modification.
@algattik @stikkireddy this should be fixed with proper lazy authentication implemented in #270 and well as other changes related to deprecating azure_auth
config block.
Affected Resource(s)
https://github.com/databrickslabs/databricks-terraform/blob/master/website/content/Provider/_index.md
Expected Details
The doc suggest using the output of a resource in the provider definition:
The Terraform Kubernetes provider documentation warns against this. Presumably this would affect the Databricks provider too, although I have not encountered this issue.
List of things to potentially add/remove:
This is a list of things to manipulate in the docs:
terraform apply
twice and using terraform outputsImportant Factoids
The Terraform documentation for the Kubernetes provider states that should not be done:
References