Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 25, 2023
1 parent 20acf65 commit c82ffab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flowlogs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ resource "aws_flow_log" "flowlog" {
# flowlog, cloudwatch
#---
resource "aws_cloudwatch_log_group" "flowlog" {
name = format("%v%v", local._prefixes["log-group"], var.vpc_full_name)
name = format("%v%v", local._prefixes["log-group"], var.vpc_full_name)
retention_in_days = var.retention_in_days

tags = merge(
local.base_tags,
Expand All @@ -106,11 +107,10 @@ resource "aws_cloudwatch_log_group" "flowlog" {
}

resource "aws_flow_log" "flowlog_cloudwatch" {
log_destination = aws_cloudwatch_log_group.flowlog.arn
iam_role_arn = var.flowlog_role_arn
traffic_type = "ALL"
vpc_id = var.vpc_id
retention_in_days = var.retention_in_days
log_destination = aws_cloudwatch_log_group.flowlog.arn
iam_role_arn = var.flowlog_role_arn
traffic_type = "ALL"
vpc_id = var.vpc_id

tags = merge(
local.base_tags,
Expand Down

0 comments on commit c82ffab

Please sign in to comment.