Skip to content

Commit

Permalink
...and get dev working again too
Browse files Browse the repository at this point in the history
  • Loading branch information
BenGalewsky committed Dec 20, 2023
1 parent 2ce164e commit 0f3e5c4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
2 changes: 2 additions & 0 deletions infra/mdf/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ module "lambdas" {
namespace = var.namespace
lambda_execution_role_arn = module.permissions.submit_lambda_invoke_arn
ecr_repos = var.ecr_repos
resource_tags = var.resource_tags

}

module "dynamodb" {
Expand Down
9 changes: 9 additions & 0 deletions infra/mdf/dev/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,13 @@ variable "ecr_repos" {
"status" = "557062710055.dkr.ecr.us-east-1.amazonaws.com/mdf-lambdas/status"
"auth" = "557062710055.dkr.ecr.us-east-1.amazonaws.com/mdf-lambdas/auth"
}
}

variable "resource_tags" {
type = map(string)
default = {
"Owner" = "MDF"
"Environment" = "Development"
"Project" = "MDF Connect"
}
}
8 changes: 4 additions & 4 deletions infra/mdf/modules/lambdas/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource "aws_lambda_function" "mdf-connect-auth" {


resource "aws_cloudwatch_log_group" "auth_log_group" {
name = "/aws/lambda/${local.auth_function_name}"
name = "/aws/lambda/${local.auth_function_name}-${var.env}"
retention_in_days = 5
tags = var.resource_tags
}
Expand All @@ -48,7 +48,7 @@ resource "aws_lambda_function" "mdf-connect-submit" {
}

resource "aws_cloudwatch_log_group" "submit_log_group" {
name = "/aws/lambda/${local.submit_function_name}"
name = "/aws/lambda/${local.submit_function_name}-${var.env}"
retention_in_days = 5
tags = var.resource_tags
}
Expand All @@ -69,7 +69,7 @@ resource "aws_lambda_function" "mdf-connect-status" {
}

resource "aws_cloudwatch_log_group" "status_log_group" {
name = "/aws/lambda/${local.status_function_name}"
name = "/aws/lambda/${local.status_function_name}-${var.env}"
retention_in_days = 5
tags = var.resource_tags
}
Expand All @@ -92,7 +92,7 @@ resource "aws_lambda_function" "mdf-connect-submissions" {
}

resource "aws_cloudwatch_log_group" "submissions_log_group" {
name = "/aws/lambda/${local.submissions_function_name}"
name = "/aws/lambda/${local.submissions_function_name}--${var.env}"
retention_in_days = 5
tags = var.resource_tags
}

0 comments on commit 0f3e5c4

Please sign in to comment.