Closed ethompsy closed 2 years ago
@ethompsy i don't see logs with /api/2.0/accounts/../log-delivery
api call. could you try again and find those specifically?
also, i'm seeing a strange error - ReferenceTransformer: reference not found: "local.databricks_account_id"
- jsondecode(data.aws_secretsmanager_secret_version.databricks_account_id.secret_string)["databricks_account_id"]
seems to be empty 🤷 ... though, i see that you're making correct calls into account apis with account id c6186072-...
@nfx That snippet is pulling our Databricks account ID out of a secret in our AWS account. It isn't going to work for you, but you could swap in a string literal. (Just don't post our account number in Github ;) )
The provider blows up before creating the log. IDK how I can get the logs.
is it consistently blowing up?
Yes, on every run it will throw the error, but still create the databricks_mws_log_delivery
object and leave it out of the TF State. This is essentially the worst possible thing it could do. We had to comment it out and create these manually (through the API) to keep moving.
@ethompsy
this happens because of status = "DISABLED"
Databricks only allows you to disable a log delivery configuration but not delete it. Hence the only way for Terraform to delete a log delivery configuration is to mark it as DISABLED. However the provider currently eagerly removed all log delivery configuration that has DISABLED status from the state file. I'll make the change so that it checks the HCL definition as well before removing the configuration.
Hi there,
Thank you for opening an issue. Please note that we try to keep the Databricks Provider issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Configuration
Expected Behavior
We expected the provider to create or not create the
databricks_mws_log_delivery
object and track the result.Actual Behavior
When we ran the TF we got this error:
But when we checked we found that the
databricks_mws_log_delivery
object was in fact created exactly as specified. So we ran it again to see if this was a hiccup and we got the same error but a seconddatabricks_mws_log_delivery
object was created.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Terraform and provider versions
Debug Output
https://gist.github.com/ethompsy/5d19834f1c0cb30a8fbb57870d6b3fc9
Important Factoids
Are there anything atypical about your accounts that we should know? Not that I am aware.