Hi, I'm new to Pulumi, so this might be a terribly...
# general
e
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?
l
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
1
e
Ah OK. I thought maybe Pulumi had a method to loop through stacks. But I can do that of course.