Skip to content

Commit 0ccceb2

Browse files
PRMT-462- testing terraform
1 parent 7243db9 commit 0ccceb2

File tree

1 file changed

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

1 file changed

+11
-11
lines changed

infrastructure/modules/lambda/main.tf

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ 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-
}
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+
# }
4242

4343
resource "aws_api_gateway_integration" "lambda_integration" {
4444
for_each = var.is_gateway_integration_needed ? { for idx, method in var.http_methods : idx => method } : {}
@@ -48,7 +48,7 @@ resource "aws_api_gateway_integration" "lambda_integration" {
4848
integration_http_method = "POST"
4949
type = "AWS_PROXY"
5050
uri = aws_lambda_function.lambda.invoke_arn
51-
depends_on = [aws_api_gateway_method.lambda_method]
51+
# depends_on = [aws_api_gateway_method.lambda_method]
5252
}
5353

5454
resource "aws_lambda_permission" "lambda_permission" {

0 commit comments

Comments
 (0)