https://pulumi.com logo
Title
a

ancient-nightfall-54764

04/27/2022, 7:48 AM
Hi all. Does anyone know whether the pulumi have command that only run specific resource? suppose I have code pulumi that all infrastructure resource on that, but I just one to run the specific resource like security group. thanks before
e

echoing-dinner-19531

04/27/2022, 8:52 AM
Sounds like
--target
?
-t, --target stringArray                    Specify a single resource URN to update. Other resources will not be updated. Multiple resources can be specified using --target urn1 --target urn2. Wildcards (*, **) are also supported
a

ancient-nightfall-54764

04/27/2022, 1:18 PM
thanks @echoing-dinner-19531, but I though --target just run or update only resource that already run/up before. How about run group of resource like group of security group, is there any option like tags in pulumi? or are there any doc/blog/video that explain how to organize pulumi code in dynamic infrastructure. thank you
e

echoing-dinner-19531

04/27/2022, 1:26 PM
We don't have tags. We do plan on making it so target will work for new resources as well (https://github.com/pulumi/pulumi/issues/8956). I think the general approach is if you have dynamic infrastructure you split it into different projects and use stack references to tie it all together.
a

ancient-nightfall-54764

04/28/2022, 2:41 AM
oh okay, thank you for your information @echoing-dinner-19531