dry-dentist-95091
10/03/2022, 8:35 AMids: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)