Skip to content
Open
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: 3 additions & 3 deletions modules/oidc/callback.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Callback Lambda
data "archive_file" "callback_lambda_zip" {
resource "archive_file" "callback_lambda_zip" {
count = local.enabled ? 1 : 0
type = "zip"
source_file = "${path.module}/lambda/callback/index.js"
Expand All @@ -12,8 +12,8 @@ resource "aws_lambda_function" "oidc_callback" {
role = aws_iam_role.lambda_oidc[0].arn
handler = "index.handler"
runtime = "nodejs22.x"
filename = data.archive_file.callback_lambda_zip[0].output_path
source_code_hash = data.archive_file.callback_lambda_zip[0].output_base64sha256
filename = resource.archive_file.callback_lambda_zip[0].output_path
source_code_hash = resource.archive_file.callback_lambda_zip[0].output_base64sha256
publish = true

environment {
Expand Down
6 changes: 3 additions & 3 deletions modules/oidc/edge.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Edge Lambda
data "archive_file" "edge_lambda_zip" {
resource "archive_file" "edge_lambda_zip" {
count = local.enabled ? 1 : 0
type = "zip"
output_path = "${path.module}/lambda/edge_auth.zip"
Expand All @@ -22,8 +22,8 @@ resource "aws_lambda_function" "edge_auth" {
role = aws_iam_role.lambda_oidc[0].arn
handler = "index.handler"
runtime = "nodejs22.x"
filename = data.archive_file.edge_lambda_zip[0].output_path
source_code_hash = data.archive_file.edge_lambda_zip[0].output_base64sha256
filename = resource.archive_file.edge_lambda_zip[0].output_path
source_code_hash = resource.archive_file.edge_lambda_zip[0].output_base64sha256
publish = true

tags = var.tags
Expand Down