From 3207e112fee7b4ca6f26847949c9680021320a54 Mon Sep 17 00:00:00 2001 From: carlosbastoslaet Date: Sun, 4 Jan 2026 10:37:05 -0300 Subject: [PATCH 1/2] fix version do format payload --- api_gateway.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api_gateway.tf b/api_gateway.tf index 239cbee..a5c9239 100644 --- a/api_gateway.tf +++ b/api_gateway.tf @@ -3,7 +3,7 @@ resource "aws_apigatewayv2_integration" "lambda_backend" { api_id = data.aws_apigatewayv2_api.tc_api.id integration_type = "AWS_PROXY" integration_uri = aws_lambda_function.id_lambda.arn - payload_format_version = "2.0" + payload_format_version = "1.0" } resource "aws_apigatewayv2_route" "clientes_post_route" { From 224b4d7a37e41db0229c9e6cb2ba57b816b3208c Mon Sep 17 00:00:00 2001 From: carlosbastoslaet Date: Sun, 4 Jan 2026 10:37:46 -0300 Subject: [PATCH 2/2] fix destroy --- .github/workflows/destroy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/destroy.yml b/.github/workflows/destroy.yml index 9a62eec..a5da251 100644 --- a/.github/workflows/destroy.yml +++ b/.github/workflows/destroy.yml @@ -20,7 +20,7 @@ jobs: uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }} + aws-secret-access-key: ${{ secrets.AWS_ACCESS_SECRET }} aws-region: ${{ env.AWS_REGION }} # 3️⃣ Verificar se a Lambda existe