Skip to content

Commit

Permalink
Try to trigger based on files rather than resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirch committed Aug 26, 2023
1 parent 36e51d4 commit ccd3ca9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions infrastructure/api_gateway.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
])
)
}
}

Expand Down

0 comments on commit ccd3ca9

Please sign in to comment.