Hey all, I am trying to apply a template to elasti...
# general
Hey all, I am trying to apply a template to elasticsearch deployment that i created through pulumi using the
provider, using curl, i have tried using
but I am stuck on how to pass the elastic password encrypted promise type output to the curl command through the
arguement, can anyone help out? I’m running pulumi on python
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.
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!