Skip to content

Commit

Permalink
fix(chatbot): api gateway permits DELETE requests (#1195)
Browse files Browse the repository at this point in the history
  • Loading branch information
batdevis authored Oct 13, 2024
1 parent 757c91c commit dcb7f89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/infrastructure/src/modules/chatbot/api_gateway_rest.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
}

0 comments on commit dcb7f89

Please sign in to comment.