https://pulumi.com logo
Title
b

brash-quill-35776

08/26/2021, 7:31 PM
Hi, I would like to create a Resource that contains 1. a k8s service, 2. deployment 3. istio virtual service. This is a fixed combination. And I need to create multiple instances of this resource like that. how do I combine they all together as a single resource, I assume I should write a Dynamic Provider right? Or there could be a easier way to achieve that? can anyone provide some guidance and direction?
l

little-journalist-4778

08/26/2021, 7:32 PM
No you should write a ComponentResource
b

brash-quill-35776

08/26/2021, 7:40 PM
thank you so much
l

little-journalist-4778

08/26/2021, 8:54 PM
If go to the pulumi example github repo there are some examples
b

brash-quill-35776

08/26/2021, 9:12 PM
finished and the solution looks very elegant, thanks