From 2dc93dd05ec99bdc3d1e831dc00c9b7d88a9bd69 Mon Sep 17 00:00:00 2001 From: Lukas Bernhard Date: Mon, 28 Oct 2024 14:57:22 +0100 Subject: [PATCH] add lambda creation --- infrastructure/ecr.tf | 4 ++-- infrastructure/lambda.tf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/infrastructure/ecr.tf b/infrastructure/ecr.tf index 1ffe88c..6d90bf6 100644 --- a/infrastructure/ecr.tf +++ b/infrastructure/ecr.tf @@ -24,8 +24,8 @@ resource "aws_ecr_lifecycle_policy" "schafkopf_scheduler" { }) } -/* + data "aws_ecr_image" "schafkopf_scheduler" { repository_name = aws_ecr_repository.schafkopf_scheduler.name image_tag = "latest" -}*/ \ No newline at end of file +} \ No newline at end of file diff --git a/infrastructure/lambda.tf b/infrastructure/lambda.tf index e0ee7d4..62252a3 100644 --- a/infrastructure/lambda.tf +++ b/infrastructure/lambda.tf @@ -1,4 +1,4 @@ -/*resource "aws_lambda_function" "schafkopf_scheduler" { +resource "aws_lambda_function" "schafkopf_scheduler" { function_name = "schafkopf_scheduler" package_type = "Image" image_uri = "${aws_ecr_repository.schafkopf_scheduler.repository_url}:latest" @@ -14,7 +14,7 @@ GMAIL_SENDER_PASSWORD = jsondecode(data.aws_secretsmanager_secret_version.gmail_credentials.secret_string)["GMAIL_SENDER_PASSWORD"] } } -}*/ +} resource "aws_iam_role" "schafkopf_scheduler" { name = "schafkopf_scheduler"