Hello everyone, i have been integrating pulumi for...
# aws
d
Hello everyone, i have been integrating pulumi for integrating with api gateway but I ran into some issue.
Copy code
ids:list[pulumi.output.Output] #contains ids of the resources to be deployed
deployment = apigateway.Deployment("test_deployment",
        rest_api=restapi.id,
        triggers={
            "redeployment":pulumi.Output.all(ids)
            .apply(lambda exampleResourceId: json.dumps([exampleResourceId]))
            .apply(lambda to_json: hashlib.sha1(to_json.encode()).hexdigest()),      
        }
    )
as pulumi.Output.all function accepts the pulumi.output.Output not list[pulumi.output.Output], I am getting error. How should I pass the above ids into pulumi.Output.all function so that all the ids in the list can passed? (a list can contain any number of elements)