You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @jkrzemin, we are discusssing this use case internally. However, as a work around, this will solve your issue. Please note: the parent space must exist before using it in "parent_key". Which means if youre trying to add a new parent space and a child space at the same time, they would have to be broken apart into two separate applies.
Currently the only method of setting one space as a child of other via terraform is to use an attribute
parent_space_id
.This makes it impossible to reference the resource in single for each since terraform will report a cycle.
If it would be possible to set such relation with association resource like https://registry.terraform.io/providers/spacelift-io/spacelift/latest/docs/resources/azure_integration_attachment then it enable usage of for loops in spaces creation.
The text was updated successfully, but these errors were encountered: