File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
infrastructure/modules/lambda Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff 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
4343resource "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
5454resource "aws_lambda_permission" "lambda_permission" {
You can’t perform that action at this time.
0 commit comments