Closed etiennejournet closed 1 year ago
It makes completly sense sorry I never thought about this before with the upcoming new version 2.0.0 I will add it as data this way you could have it as data instead of resource if you want to to avoid this kind of thing.
Closing as introduced in https://github.com/aztfmod/terraform-provider-azurecaf/releases/tag/v1.2.22. We will roll out in the next major version of the caf module Feel free to reopen if not solved.
Hello team !
Thanks for your work on this module :) I wanted to signal that I had some problems with resource creation order (which made me wonder why you didn't make this a datasource ?)
In short the problem comes from datasources being evaluated first at plan, and If you need to use a datasource that depends on a
azurecaf
resource it can make your terraform plan unable to resolve this datasource (and to access subsequent resources).Here is an example :
Now, your
kubernetes
provider is unable to read its resources at plan time, because it depends on aazurecaf
resource that isn't created.