full-lamp-64265
09/19/2024, 6:50 AMproud-art-41399
09/19/2024, 8:13 AMadventurous-butcher-54166
09/19/2024, 10:28 AMdepends_on
is only really needed when you have to do some mangling with the outputs or can't use outputs directly as inputs and have to explicitly define the order of things are created, destroyed etc.
I'd say I use parent 95% of the time and as an added benefit it will visually show the logical grouping of resources during Pulumi operations.
When developing IaC modules I usually review the output and make sure things are correctly grouped together.mammoth-electrician-64525
09/19/2024, 11:12 AM# AmazonEKSVPCResourceController
aws.iam.RolePolicyAttachment(
resource_name=dynamic_name(
data["iam"]["eks-vpc-resource-policy"]["name"]
),
role=eks_role.id,
policy_arn=data["iam"]["eks-vpc-resource-policy"]["policy_arn"],
opts=pulumi.ResourceOptions(depends_on=eks_role),
)
mammoth-electrician-64525
09/19/2024, 11:13 AMmammoth-electrician-64525
09/19/2024, 11:14 AMfull-lamp-64265
09/19/2024, 1:54 PMmammoth-electrician-64525
09/19/2024, 2:11 PMmammoth-electrician-64525
09/19/2024, 2:17 PMmammoth-electrician-64525
09/19/2024, 2:18 PM