Hi all! Sorry, might be a stupid question but I’m struggling to find the answer in the documentation...
f
Hi all! Sorry, might be a stupid question but I’m struggling to find the answer in the documentation. Tried to check the source code as well for some examples. I am trying to create a custom component in Python. The doc https://www.pulumi.com/docs/intro/concepts/programming-model/#registering-component-outputs tells us to use
Copy code
self.register_outputs({
    bucketDnsName: bucket.bucketDomainName
})
Which doesn’t work - if it’s a dict, then it should be
"bucketDnsName": bucket.bucketDomainName
and then it should presumably register the output property named “buckerDnsName”? But when I try to use it as
resource.bucketDnsName
it doesn’t work and complains about “AttributeError”. Should I DIY it like
self.bucketDnsName = bucket.bucketDomainName
after self.register_outputs call?