You must be logged in to view saved presets
Defines two Lambda function URLs with different authorization settings and CORS configurations.
resource "aws_lambda_function_url" "test_latest" {
authorization_type = "NONE"
function_name = "aws_lambda_function.test.function_name"
}
resource "aws_lambda_function_url" "test_live" {
authorization_type = "AWS_IAM"
cors {
allow_credentials = true
allow_headers = ["date", "keep-alive"]
allow_methods = [*]
allow_origins = [*]
expose_headers = ["keep-alive", "date"]
max_age = 86400
}
function_name = "aws_lambda_function.test.function_name"
qualifier = "my_alias"
}