Hey all, I am trying to apply a template to elasti...
# general
s
Hey all, I am trying to apply a template to elasticsearch deployment that i created through pulumi using the
elasticcloud
provider, using curl, i have tried using
local.Command
but I am stuck on how to pass the elastic password encrypted promise type output to the curl command through the
environment
arguement, can anyone help out? I’m running pulumi on python
l
Use the apply function: https://www.pulumi.com/docs/concepts/inputs-outputs/apply/ Your call to curl goes inside the apply lambda. You cannot get the value outside an apply.
s
yes @little-cartoon-10569 I tried that and it worked, seems the value is accessible within the pulumi.Output scope, so applied the value by apply to a function call and retrieved the val from list and ran the command, thanks for the suggestion!