Hi, I'm new to Pulumi, so this might be a terribly stupid question. I've created a project with a stack that creates ONE EC2 instance which are configured based on a couple of configuration settings. Now, I want to have (I think) another project (or stack?) that can launch the first one 5 times with different configurations. Is this possible? Am I even thinking about this right?
12/23/2021, 8:08 AM
You can do it that way. If it's a fixed 5 EC2 instances, then it might be easier to just put them all in one file.
If you want 5 stacks, then you can wrap your
pulumi stack select X; pulumi up
code in a shell scripts. Or you can use automation-api
12/23/2021, 4:18 PM
Ah OK. I thought maybe Pulumi had a method to loop through stacks. But I can do that of course.