Skip to content

Commit 0a8d158

Browse files
PRMT-462- testing terraform
1 parent 7b75ca8 commit 0a8d158

File tree

1 file changed

+0
-11
lines changed
  • infrastructure/modules/lambda

1 file changed

+0
-11
lines changed

infrastructure/modules/lambda/main.tf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,6 @@ resource "aws_lambda_function" "lambda" {
2929
]
3030
}
3131
}
32-
# resource "aws_api_gateway_method" "lambda_method" {
33-
# for_each = var.is_gateway_integration_needed ? {
34-
# for idx, method in var.http_methods : idx => method
35-
# } : {}
36-
#
37-
# rest_api_id = var.rest_api_id
38-
# resource_id = var.resource_id
39-
# http_method = each.value
40-
# authorization = "NONE"
41-
# }
4232

4333
resource "aws_api_gateway_integration" "lambda_integration" {
4434
for_each = var.is_gateway_integration_needed ? { for idx, method in var.http_methods : idx => method } : {}
@@ -48,7 +38,6 @@ resource "aws_api_gateway_integration" "lambda_integration" {
4838
integration_http_method = "POST"
4939
type = "AWS_PROXY"
5040
uri = aws_lambda_function.lambda.invoke_arn
51-
# depends_on = [aws_api_gateway_method.lambda_method]
5241
}
5342

5443
resource "aws_lambda_permission" "lambda_permission" {

0 commit comments

Comments
 (0)