sparse-intern-71089
06/21/2020, 12:19 PMable-beard-29160
06/21/2020, 12:27 PMpulumi stack init $stack_name
where $stack_name
is derived from the branch name or the CI/CD build number?able-beard-29160
06/21/2020, 12:28 PMdamp-elephant-82829
06/21/2020, 12:30 PMable-beard-29160
06/21/2020, 12:35 PMpulumi stack select --create foo
.damp-elephant-82829
06/21/2020, 12:49 PMdamp-elephant-82829
06/21/2020, 12:51 PMable-beard-29160
06/21/2020, 1:14 PMcolossal-beach-47527
06/21/2020, 7:41 PMmaster
/`main` updating a testing
stack, pushes to production
updating a production
stack, and so on.
If you want to create a Pulumi stack specifically for testing things during the lifecycle of a pull request (like Angel and I will cover, or in that CNCF talk Ionut linked to), that’s possible… but ultimately tied to whatever CI/CD system you have and the sort of hooks you can use. (So it can be difficult to set up.)
But it’s definitely an area that we at Pulumi are working on and will be continuing to publish examples and documentation for how to do this with various CI/CD providers. Since enabling infrastructure testing is one of the major advantages to infrastructure as code, and Pulumi!colossal-beach-47527
06/21/2020, 7:45 PMdamp-elephant-82829
06/22/2020, 7:25 AM