https://pulumi.com logo
#python
Title
i

incalculable-sundown-82514

10/25/2018, 5:46 PM
We use what we call “component resources” pretty heavily for this sort of thing. You can write normal Python modules that export classes that inherit from
pulumi.ComponentResource
and in the
__init__
of that class, you can create other resources. Sort of like this: https://github.com/pulumi/pulumi-aws-infra/blob/0f78af2ecd231e10dcc63f46ca07b8fa972ac6b1/python/pulumi_aws_infra/network.py#L25