https://pulumi.com logo
#general
Title
# general
f

full-lamp-64265

12/14/2023, 10:38 AM
Is there some way with pulumi to group a bunch of resources together so they can be deployed seperately from others. These would all be in one project and stack
d

dry-keyboard-94795

12/14/2023, 10:52 AM
You can use component resources to logically group resources, though they're still deployed in parallel with other resources. https://www.pulumi.com/docs/concepts/resources/components/ Is this what you mean?
f

full-lamp-64265

12/14/2023, 10:53 AM
That would be it yes, could I not then use
--target
with the component resource though?
To deploy only that
I will try anyway
d

dry-keyboard-94795

12/14/2023, 10:54 AM
Yes, the component resource type will form part of the URN, and will work well if you have a single instance of the CR
a

ambitious-father-68746

12/14/2023, 12:59 PM
Hi, is there a way to specify dependencies on a function? For example,
pulumi_aws.iam.get_policy_document
? I would love to be able to combine multiple policy documents, since resources like SQS and SQS can only have a single policy, but I don't see a way to be able to do that. A particular example is if I have an SNS topic and two SQS queues, each with their own KMS key. SNS has to know everything about the queues and the keys beforehand, so that it can set the policy at the same time. This is not great on a dynamic environment.
d

dry-keyboard-94795

12/14/2023, 1:00 PM
Can you post into general to start a new thread please
a

ambitious-father-68746

12/14/2023, 1:18 PM
Of course! Sorry, this is not what I intended. 🤦‍♀️
q

quick-machine-30319

12/14/2023, 4:06 PM
@full-lamp-64265 do they need to be kept in the main stack, or could you split them out, using the microstacks approach? https://www.pulumi.com/docs/using-pulumi/organizing-projects-stacks/