08/31/2022, 11:09 AM
hi all! is it possible to get a config value from the state of my most recent deploy? so, for example, i'm storing my pulumi state in s3. one of the config values when i deploy is
, which specifies the tag of a container image that i'm deploying. in my pulumi code, i'd like to read this config value to see what tag is currently deployed. is that possible?
found it! for anyone interested, this was the solution:
const currentImageTag = new pulumi.StackReference(pulumi.getStack()).getOutputValue(
plus, making sure to export the image tag.
☝️ 1
🎉 1