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