https://pulumi.com logo
Title
f

full-artist-27215

03/31/2021, 4:58 PM
Are there any examples of using the
triggers
parameter for API Gateway deployments? Best I can find is https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/api_gateway_deployment
b

brave-planet-10645

03/31/2021, 5:01 PM
There's an example in the HTTP api gateway that you could use even in the REST api gateways.. let me just hunt it out
Nope not there... give me a sec and I'll grab something
So the idea being that if you change the file that it's on, the hash will change and therefore a new deployment will be created. Actually it's adding the new one and deleting the old one
f

full-artist-27215

03/31/2021, 5:17 PM
ah, so if I've got an API backed by a bunch of lambda functions, my triggers could just be a bunch of checksums of the corresponding ZIP archives... something like that?
b

brave-planet-10645

03/31/2021, 7:53 PM
That would work
f

full-artist-27215

03/31/2021, 9:45 PM
Sounds good... thank you @brave-planet-10645