Skip to content

Commit

Permalink
fix: explicitly reference s3 bucket resource as flow log destination
Browse files Browse the repository at this point in the history
  • Loading branch information
kirklandnuts committed Dec 12, 2024
1 parent 41d23e7 commit 6f2065b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ resource "aws_flow_log" "agentless_scan_vpc_flow_log" {

# Send logs to manged S3 bucket.
log_destination_type = "s3"
log_destination = "arn:aws:s3:::${local.prefix}-bucket-${local.suffix}/sidekick/flow-logs/"
log_destination = aws_s3_bucket.agentless_scan_bucket[0].arn

tags = merge(var.tags, {
Name = "${local.prefix}-vpc"
Expand Down

0 comments on commit 6f2065b

Please sign in to comment.