This message was deleted.
# general
s
This message was deleted.
b
you're missing an output inside your component class: https://github.com/jaxxstorm/pulumi-nginx-demo/blob/main/nginx-ingress/app.py#L9 If you do:
Copy code
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 work
g
I've looked at your example and I do not think that I need a
class 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