Hey everyone! Is it possible to update the environment variable in an already created pulumi cloud run object(gcp.cloudrunv2.Service)? I want to add a pubsub subscription id as a part of the environment variable list but it depends on the push endpoint url from the same cloud run. So I have to update it after the the creation of both subscription and cloud run. Can anyone help me with this?
m
modern-zebra-45309
06/04/2024, 11:49 AM
How would you do it when creating this infrastructure manually, e.g., via the CLI?
f
flaky-rainbow-10344
06/04/2024, 12:41 PM
I can either add manually in the console, or cli
m
modern-zebra-45309
06/04/2024, 12:46 PM
Can you be more specific? You should be able to replicate what you do via the CLI in your Pulumi code. Either through the resource directly, or by making a call with the GCP SDK to update the environment variables once you have all the necessary information.