sparse-intern-71089
07/22/2021, 11:08 AMbillowy-army-68599
class MyTopic(ComponentResource):
component_topic_name: pulumi.Output[str]
self.component_topic_name = self.topic.name
self.register_outputs(
{
'component_topic_name': self.topic.name,
}
)
It should workgreat-sunset-355
07/23/2021, 8:30 AMclass attribute
just to get the output. (I'd suggest using a data class for config instead of a regular class)
I may have misunderstood the purpose of register_outputs
.
It updates resource outputs.
I expected the function to update stack outputs updated as well when I instantiate the resource.
Here is a gist with the code and expected output:
https://gist.github.com/1oglop1/fb87b89636aebaeb5945863dbeca4ec3