pulumi / pulumi-cloud-requests

Welcome to the public issue tracker for Pulumi Cloud (app.pulumi.com)! Feature requests and bug reports welcome!
10 stars 4 forks source link

Enable testing stack upgrades via Deployments & Review Stacks #300

Open AaronFriel opened 1 year ago

AaronFriel commented 1 year ago

n.b.: I'll use the terms 0 for an empty stack, N for the current production's state, and N+1 for the state of production assuming the next PR is merged and deployed.

As a Pulumi user, the ability to model stack transitions from the empty state 0 to N+1 with Deployments and Review Stacks is invaluable. However, a feature to reproduce production deployments - moving from state N to N+1 - would be highly beneficial.

I propose a feature that allows Review Stacks to initiate with the target branch's code prior to deploying the code from the PR's branch, followed by deploying the PR's changes. This capability should extend to all consecutive pushes, mimicking the state transition from N to N+1 more accurately.

This addition will bolster confidence in our deployment process, this combination of Deployments and Review Stacks may be a unique feature in combining infrastructure as code (IAC) and continuous deployments.

Open Questions:

  1. Can we also model config changes, e.g.: pulumi config set changing from value A to B?
  2. What guidance or feature(s) could we provide to ensure the template stack closely resembles the target environment's?

Affected feature

Pulumi Deployments & Pulumi Deployments Review Stacks