Closed pavs23 closed 1 year ago
Hi @pavs23, which example are you referring to ? Can you check the fix with this PR ?
Hey @yessawab,
Thanks for the fast response. That fix you've linked is also a good option.
When I searched this repo I found examples like these:
My request would be to update the docs page please: https://docs.databricks.com/dev-tools/terraform/tutorial-aws.html
Hey @yessawab, I raised the PR to fix those examples. Please let me know your feedback.
Thanks, Pavan
Awesome. Thanks for the PR @pavs23. I will request the doc change.
Introduction
I'm creating new Databricks workspace as a hobby using Terraform & AWS.
Issue
The issue I've faced a couple of times during the creation of the workspace, particularly the
databricks_mws_credentials
resource is that when we try to attach it to the IAM Role, it may not have been created yet. Theterraform apply
step fails due to the race condition where theaws_iam_role.cross_account_role
doesn't exist yet.I've pulled out the code which caused the issue from the docs: https://docs.databricks.com/dev-tools/terraform/tutorial-aws.html
Fix
The simplest fix:
I'm willing to raise this PR to update the examples in this repo, someone from @databricks will need to kindly update the docs website.
Thank you, Pavan