This message was deleted.
# python
s
This message was deleted.
i
Basically, I am trying to build a resource string, where part of the values are coming from other pulumi components, while some are plain python variables. I don't have a ton of experience with python lamdas either, so I am a bit stuck
h
Copy code
pulumi.Output.all(resource_group.name, current_subscription).apply(
        lambda args: # do whatever here with args[0] and args[1]
)
try this out?
i
thanks @handsome-state-59775 I ended up skipping the lambda and trying out pulumi's output.concat.
👍🏽 1
Copy code
def get_resource_id(resource_type):
    return Output.concat("/subscriptions/",subscription_id,"/resourceGroups/",resource_group.name,"/providers/Microsoft.Network/applicationGateways/",application_gateway_name,"/",resource_type,"/",default_name)
👍 1
s
I would pass all parameters to the
get_resource_id
instead of depending on variables outside of its scope though