Skip to content
Merged
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
12 changes: 12 additions & 0 deletions terraform/modules/compute/aws/lambda/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@ resource "aws_lambda_function" "main" {
# Lambda Function URL (for HTTP access)
# ==============================================

# moved: aws_lambda_function_url.main lost its `count` in PR #574 (drop
# of dead-knob lambda_enable_function_url). The existing deployment's
# state holds the resource at index [0]; this block tells terraform
# to update the state index in-place instead of destroying the
# existing Function URL and creating a fresh one with a different
# host (which would break the dashboard until origins/DASHBOARD_URL
# are re-propagated everywhere).
moved {
from = aws_lambda_function_url.main[0]
to = aws_lambda_function_url.main
}

resource "aws_lambda_function_url" "main" {
function_name = aws_lambda_function.main.function_name
authorization_type = var.function_url_auth_type
Expand Down
Loading