Is there a way to pass two arguments using the `ap...
# general
r
Is there a way to pass two arguments using the
apply
method with Python?
Copy code
template = lambda Topic, Endpoint: { "AWSTemplateFormatVersion": "2010-09-09",
    "Resources": {
        "MySubscription": {
            "Type": "AWS::SNS::Subscription",
            "Properties": {
                "Protocol": "email",
                "Endpoint": Endpoint,
                "TopicArn": Topic
            },
        }
    }
}

sns_email = cloudformation.Stack(
    "Cloudformation-email",
    template_body = (template(sns_topic.arn, Endpoint))
)
g
Output.all(...)
will let you apply multiple arguments. https://www.pulumi.com/docs/intro/concepts/programming-model/#all