many-mouse-4292
11/24/2020, 1:04 PMfrom pulumi.resource import ComponentResource
class AggregatorComponent(ComponentResource):
def __init__(self, *args, **kwargs) -> None:
super(AggregatorComponent, self).__init__(t="aggregator", *args, **kwargs)
and using it like so
project_aggregator = AggregatorComponent(name=project_id)
opts = ResourceOptions(parent=dataset_aggregator)
DemographyDataset(opts=opts)
FunctionsDataset(opts=opts)
...
Is there a better way to do this than my homemade AggregatorComponent
?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by