Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions terraform/platform/imports.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# One-time imports — remove after successful apply.

import {
to = module.lambdas.aws_lambda_permission.password_set_public_url
id = "javabin-password-set/FunctionURLAllowPublicAccess"
}
12 changes: 10 additions & 2 deletions terraform/platform/lambdas/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -738,8 +738,16 @@ resource "aws_lambda_function_url" "password_set" {
authorization_type = "NONE"
}

# Public access — the function URL auto-creates FunctionURLAllowPublicAccess
# for InvokeFunctionUrl. Since Oct 2025, InvokeFunction is also required.
# Public access for function URL — both permissions required since Oct 2025.
# FunctionURLAllowPublicAccess is imported (auto-created by the function URL).
resource "aws_lambda_permission" "password_set_public_url" {
statement_id = "FunctionURLAllowPublicAccess"
action = "lambda:InvokeFunctionUrl"
function_name = aws_lambda_function.password_set.function_name
principal = "*"
function_url_auth_type = "NONE"
}

resource "aws_lambda_permission" "password_set_public_invoke" {
statement_id = "AllowPublicInvoke"
action = "lambda:InvokeFunction"
Expand Down