Skip to content

Commit

Permalink
chore: update flow log cloudwatch name
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 committed Aug 29, 2024
1 parent 2997bb5 commit 5b15f0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aws/networking/vpc-flow-logs/cloudwatch.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "aws_cloudwatch_log_group" "logs" {
count = local.enable_cloudwatch_destination ? 1 : 0

name_prefix = "${var.name}-flow-logs"
name = "/aws/vpc/${var.name}-flow-logs"
retention_in_days = var.cloudwatch_log_retention_in_days

tags = var.tags_all
Expand Down
2 changes: 1 addition & 1 deletion aws/networking/vpc/flow_logs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module "flow_log" {
source = "../vpc-flow-logs"

vpc_id = aws_vpc.this.id
name = "${var.name}-flow-logs"
name = var.name

traffic_type = var.flow_log_traffic_type
cloudwatch_log_retention_in_days = var.flow_log_cloudwatch_log_retention_in_days
Expand Down

0 comments on commit 5b15f0c

Please sign in to comment.