diff --git a/terraform/environment/outputs.tf b/terraform/environment/outputs.tf index c9be79ff..7806dd54 100644 --- a/terraform/environment/outputs.tf +++ b/terraform/environment/outputs.tf @@ -1,8 +1,3 @@ -output "lambda_url" { - description = "Public URL of 'create' Lambda function" - value = module.eu_west_1.lambda_url -} - output "base_url" { description = "Base URL of API" value = module.eu_west_1.base_url diff --git a/terraform/environment/region/outputs.tf b/terraform/environment/region/outputs.tf index 42d16681..b1237ada 100644 --- a/terraform/environment/region/outputs.tf +++ b/terraform/environment/region/outputs.tf @@ -1,8 +1,3 @@ -output "lambda_url" { - description = "Public URL of 'create' Lambda function" - value = module.lambda["create"].function_url -} - output "base_url" { value = aws_api_gateway_stage.current.invoke_url } diff --git a/terraform/modules/lambda/iam.tf b/terraform/modules/lambda/iam.tf index 26bc8dfb..b2396f3b 100644 --- a/terraform/modules/lambda/iam.tf +++ b/terraform/modules/lambda/iam.tf @@ -53,17 +53,3 @@ resource "aws_lambda_permission" "allow_lambda_execution_operator" { function_name = aws_lambda_function.main.function_name principal = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/operator" } - -resource "aws_lambda_permission" "allow_lambda_url_execution_operator" { - statement_id = "AllowUrlExecutionOperator" - action = "lambda:InvokeFunctionUrl" - function_name = aws_lambda_function.main.function_name - principal = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/operator" -} - -resource "aws_lambda_permission" "allow_lambda_url_execution_ci" { - statement_id = "AllowUrlExecutionCI" - action = "lambda:InvokeFunctionUrl" - function_name = aws_lambda_function.main.function_name - principal = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/lpa-store-ci" -} diff --git a/terraform/modules/lambda/main.tf b/terraform/modules/lambda/main.tf index e1d5d860..9436e845 100644 --- a/terraform/modules/lambda/main.tf +++ b/terraform/modules/lambda/main.tf @@ -22,8 +22,3 @@ resource "aws_lambda_function" "main" { } } } - -resource "aws_lambda_function_url" "main" { - function_name = aws_lambda_function.main.function_name - authorization_type = "AWS_IAM" -} diff --git a/terraform/modules/lambda/outputs.tf b/terraform/modules/lambda/outputs.tf index e5304de3..51a7b5da 100644 --- a/terraform/modules/lambda/outputs.tf +++ b/terraform/modules/lambda/outputs.tf @@ -1,8 +1,3 @@ -output "function_url" { - description = "Public URL of Lambda function" - value = aws_lambda_function_url.main.function_url -} - output "iam_role_id" { description = "ID of IAM role created for lambda" value = aws_iam_role.lambda.id