From ccd3ca9b3e90f7721a457d4b848891c20c30ccda Mon Sep 17 00:00:00 2001 From: mirch Date: Sat, 26 Aug 2023 21:01:26 +0300 Subject: [PATCH] Try to trigger based on files rather than resources --- infrastructure/api_gateway.tf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/infrastructure/api_gateway.tf b/infrastructure/api_gateway.tf index 8985fc3..bb5bfe0 100644 --- a/infrastructure/api_gateway.tf +++ b/infrastructure/api_gateway.tf @@ -26,11 +26,11 @@ resource "aws_apigatewayv2_deployment" "api_deployment" { } triggers = { - redeployment = sha1(join(",", tolist([ - jsonencode(aws_apigatewayv2_api.api), - jsonencode(aws_apigatewayv2_route.initiate_payment_route), - jsonencode(aws_apigatewayv2_route.finish_payment_route), - ]))) + redeployment = sha1( + jsonencode([ + file("api_gateway.tf"), + ]) + ) } }