Hey all! How can one use the pulumi outputs to bui...
# general
a
Hey all! How can one use the pulumi outputs to build a dockerfile that uses that output as an environment variable? Similar to this question in SO: https://stackoverflow.com/questions/61194555/how-to-pass-environment-variable-to-dockerfile-through-pulumi
👀 1
Right now my approach is to use
string.format
inside
apply
and build the file from there. But wondering if pulumi has an API for this? Tried to search through the docs but can't find anything for this.
Just for context. Im using GCP cloud run (AWS lambda equivalent) and pubsub (AWS SNS equivalent). After the pubsub is built, i want to put the pubsub url as an environment variable in the docker image to be used in the cloud run (so that it knows which pubsub to publish to)