equinor / terraform-baseline

Best practices for creating reusable Terraform modules using the Azure provider
https://equinor.github.io/terraform-baseline/
MIT License
10 stars 5 forks source link

Don't create conditional resources based on values that are unknown during planning #119

Open hknutsen opened 5 months ago

hknutsen commented 5 months ago

Trying to create a conditional resource based on a value that is unknown during planning, for example resource IDs which are unknown until the resource is created, will cause Terraform to throw an error.

This is not true for dynamic blocks.

Examples:

hknutsen commented 4 months ago

Example scenario: https://github.com/equinor/terraform-baseline/issues/135#issuecomment-2046955804

github-actions[bot] commented 2 months ago

There has been no activity on this issue for 60 days. stale label will be added. If no additional activity occurs, the issue will be closed in 14 days.

helenakallekleiv commented 1 month ago

This issue is still relevant.