Skip to content

Commit

Permalink
fix: Added missing dash for buckets with a suffix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesiarmes committed Oct 28, 2024
1 parent 159f86e commit ebc087f
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 @@ -3,7 +3,7 @@
#trivy:ignore:avd-aws-0089
resource "aws_s3_bucket" "logs" {
bucket = var.bucket_suffix ? null : "${local.prefix}-logs"
bucket_prefix = var.bucket_suffix ? "${local.prefix}-logs" : null
bucket_prefix = var.bucket_suffix ? "${local.prefix}-logs-" : null

lifecycle {
prevent_destroy = true
Expand Down

0 comments on commit ebc087f

Please sign in to comment.