From b6ce1a30816742b295d62c3b7677575e9d8cdafd Mon Sep 17 00:00:00 2001 From: Devis Battisti Date: Fri, 11 Oct 2024 10:01:45 +0200 Subject: [PATCH] fix(chatbot): api gateway permits DELETE requests --- apps/infrastructure/src/modules/chatbot/api_gateway_rest.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/infrastructure/src/modules/chatbot/api_gateway_rest.tf b/apps/infrastructure/src/modules/chatbot/api_gateway_rest.tf index 1de53911c..59eb2349d 100644 --- a/apps/infrastructure/src/modules/chatbot/api_gateway_rest.tf +++ b/apps/infrastructure/src/modules/chatbot/api_gateway_rest.tf @@ -45,7 +45,7 @@ resource "aws_api_gateway_resource" "chatbot" { } resource "aws_api_gateway_method" "chatbot" { - for_each = toset(["GET", "POST", "PUT", "PATCH"]) + for_each = toset(["GET", "POST", "PUT", "PATCH", "DELETE"]) rest_api_id = aws_api_gateway_rest_api.api.id resource_id = aws_api_gateway_resource.chatbot.id http_method = each.value @@ -169,4 +169,4 @@ resource "aws_api_gateway_integration" "chatbot_cors" { resource "aws_api_gateway_account" "chatbot" { cloudwatch_role_arn = aws_iam_role.cloudwatch.arn -} \ No newline at end of file +}