Skip to content

Commit

Permalink
add lambda creation
Browse files Browse the repository at this point in the history
  • Loading branch information
lbernhard95 committed Oct 28, 2024
1 parent 7dfd9d8 commit 2dc93dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions infrastructure/ecr.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}*/
}
4 changes: 2 additions & 2 deletions infrastructure/lambda.tf
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 2dc93dd

Please sign in to comment.