diff --git a/main.tf b/main.tf index 492aa6b..e6f4754 100644 --- a/main.tf +++ b/main.tf @@ -28,10 +28,13 @@ resource "aws_ecs_cluster" "github-runner" { name = var.ecs_cluster_name } +data "aws_caller_identity" "current" {} data "aws_region" "current" {} - -data "aws_region" "current" {} +resource "aws_cloudwatch_log_group" "function_log_group" { + name = "/ecs-ghe-runners/${terraform.workspace}-${data.aws_caller_identity.current.account_id}-${data.aws_region.current.name}" + retention_in_days = 90 +} resource "aws_vpc_endpoint" "ecr" { for_each = var.create_vpc_endpoint ? toset([