pulumi / esc-sdk

Apache License 2.0
3 stars 1 forks source link

Update environment returns the revision that was just created #15

Open liamawhite opened 5 months ago

liamawhite commented 5 months ago

Hello!

Issue details

  1. Revision number is at 10
  2. UpdateEnvironment is called, returns revision 11 as part of the sdk API

This way it avoids the edge case where something (or someone) else updates the environment before your are able to list the revisions i.e. it makes it somewhat atomic.

Our use case here is we update the environment and then use that revision to pass through a pipeline tagging as dev, staging, prod, running pulumi up at each step.

Affected area/feature

Esc SDK

cleverguy25 commented 5 months ago

This makes sense, I will work on an update here.

komalali commented 5 months ago

This is also what PSP does, so makes sense to be consistent