Implicit dependancy missing from role membership #1422
Replies: 4 comments
-
|
Hello @sophie-warner-annalise-ai Please consider using depends_on or a sleep timer resource. |
Beta Was this translation helpful? Give feedback.
-
|
I have done so but just raising this as an issue |
Beta Was this translation helpful? Give feedback.
-
|
@sophie-warner-annalise-ai That makes sense. For #1007, we reached out to the API team to better understand the root cause, and here’s what they shared:
Since these are two separate Terraform resources, we unfortunately can’t add an explicit wait or delay between them. The only thing we could theoretically do is introduce a sleep before returning the The API team also mentioned that they don’t currently have plans to optimize this behaviour in the near future. |
Beta Was this translation helpful? Give feedback.
-
|
@sophie-warner-annalise-ai Hey again. To ensure this doesn't get slipped off under the rug, I'm moving this under Regards. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Description
If you create a user, org member, and org member role; the provider tries to create the org member role before the org membership resulting in failure.
Workarounds:
depends_onmeta-argument.Expectation
The provider creates org members before it creates org member roles. This would prevent.
Reproduction
Auth0 Terraform Provider version
1.35.0
Terraform version
OpenTofu v1.11.0-rc1
Beta Was this translation helpful? Give feedback.
All reactions