We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f0e459 commit 04f17f7Copy full SHA for 04f17f7
infrastructure/api.tf
@@ -12,26 +12,9 @@ resource "aws_apigatewayv2_api" "api" {
12
}
13
14
resource "aws_apigatewayv2_stage" "api_stage" {
15
- api_id = aws_apigatewayv2_api.api.id
16
- name = "$default"
17
- deployment_id = aws_apigatewayv2_deployment.api_deployment.id
18
-}
19
-
20
-resource "aws_apigatewayv2_deployment" "api_deployment" {
21
api_id = aws_apigatewayv2_api.api.id
22
- description = "rust-lambda-starter API deployment"
23
24
- lifecycle {
25
- create_before_destroy = true
26
- }
27
28
- triggers = {
29
- redeployment = sha1(
30
- jsonencode([
31
- file("api_gateway.tf"),
32
- ])
33
- )
34
+ name = "$default"
+ auto_deploy = true
35
36
37
# HELLO WORLD
0 commit comments