it should not be a problem to create a short-lived stack via CI - eg 1st job will deploy and then the last job destroy including
stack rm
We are planning to build a PR environment but most likely abstract it using Automation API.
w
white-chef-55657
05/11/2022, 3:33 PM
feels like I’m reinventing the wheel, but I think this can’t be an out-of-the-box solution as it depends on a fully customized pulumi project to begin with
white-chef-55657
05/11/2022, 3:33 PM
now that I know I can reference an existing kubeconfig from the “main” stack, I can use it to set up the new stack
white-chef-55657
05/11/2022, 3:34 PM
question is, how do you dynamically create new stacks? copy a template stack yml?
g
great-sunset-355
05/12/2022, 4:37 AM
That's relatively simple, you have 2 options:
1) CLI
• Have pulumi project folder ready - which you probably have for workload env (dev/prod..)
• then either
cd my_project
• and then
pulumi stack init my-stack -C <path to my_project>
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.