Are there any examples of using the `triggers` par...
# aws
f
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
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
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
That would work
f
Sounds good... thank you @brave-planet-10645