rich-agency-75207
04/24/2024, 9:28 AMdependsOn
attribute
stack config:
stack-config-key: parent
-----------------------------------------
variables:
stack-config-key:
type: String
resources:
parent-resource-logical-id:
...
child-resource-logical-id:
type: xxxxxxxxxxx
properties:
...
options:
dependsOn:
- ${${stack-config-key}-resource-logical-id}
Note: This is a simplified example and does not demonstrate the actual use case.ancient-policeman-24615
05/04/2024, 2:15 AMdependsOn
is a static list of resources. You can’t choose them dynamically with variable substitution.ancient-policeman-24615
05/04/2024, 2:15 AMpulumi:pulumi:Stack (dev-yaml-dev):
error: expected resource, got string
on Pulumi.yaml line 16:
16: - ${foo}
error: Error registering resource [my-bucket]: no diagnostics