calm-actor-89994
01/14/2025, 6:04 PMclass VPC(ComponentResource):
def __init__(self, ...):
...
self.register_outputs({
"id": self.vpc.id,
"custom_id": "123456",
})
why can't I access component resource outputs within pulumi export?
vpc = VPC(...)
pulumi.export("vpc_id", vpc.id) # this doesn't work
adorable-computer-41765
01/15/2025, 7:45 PMcalm-actor-89994
01/15/2025, 9:07 PMadorable-computer-41765
01/15/2025, 9:08 PMself.id = self.vpc.id
and it would work the way you want it there.calm-actor-89994
01/15/2025, 9:14 PMadorable-computer-41765
01/15/2025, 9:17 PMopts*=*pulumi*.*ResourceOptions(parent*=*self))
on all of them so dependencies flow thru