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"