Skip to content

Commit

Permalink
Add Amplitude API dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
pswies committed Nov 6, 2024
1 parent 279ecdd commit b5f003c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions amplitude_api_gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ resource "aws_apigatewayv2_stage" "this" {
}

deployment_id = aws_apigatewayv2_deployment.this.id

lifecycle {
replace_triggered_by = [
aws_apigatewayv2_integration.this.integration_uri,
]
}
}

resource "aws_apigatewayv2_route" "this" {
Expand All @@ -60,4 +66,10 @@ resource "aws_apigatewayv2_integration" "this" {
resource "aws_apigatewayv2_deployment" "this" {
depends_on = [aws_apigatewayv2_route.this]
api_id = aws_apigatewayv2_api.this.id

lifecycle {
replace_triggered_by = [
aws_apigatewayv2_integration.this.integration_uri,
]
}
}

0 comments on commit b5f003c

Please sign in to comment.