Closed jmch1692 closed 7 months ago
The reason I'd rather keep it this way is that each reference is a single API call. Having a Terraform resource depend on multiple API calls some of which succeed, and some of which can fail adds quite a bit of complexity (you'd get partially successful resources 🤮 ).
But, nothing really prevents you from using a for_each
for the entire resource. Since we don't charge for resources under management, you can go wild :)
Current usage
Proposal
Allow in-body definition of multiple dependency references, in a single spacelift_stack_dependency_reference block. This should allow an easier iteration over the dependency resource, reference would enclose 1 or many actual output>input maps