Ensure AWS AuthType for your Lambda function URLs is defined

Error: AWS Lambda function URLs AuthType is not defined

Bridgecrew Policy ID: BC_AWS_GENERAL_132
Checkov Check ID: CKV_AWS_258
Severity: LOW

AWS Lambda function URLs AuthType is not defined

Description

The AWS AuthType for your Lambda function URLs determines how users are authenticated when they access the URLs of your Lambda functions. It is important to ensure that the AWS AuthType for your Lambda function URLs is defined because it helps to secure your functions and protect them from unauthorized access.

Fix - Runtime

Fix - Buildtime

Terraform

resource "aws_lambda_function_url" "pass" {
  function_name      = aws_lambda_function.test.function_name
  qualifier          = "my_alias"
  authorization_type = "AWS_IAM"
}