Skip to content

Commit

Permalink
switch value back
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsweetman committed Dec 19, 2023
1 parent b0dfe59 commit 5392b11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions locals.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
s3_bucket_id = module.s3-bucket[0].bucket.id # handle invalid reference in storage.location.template parameter reference
}
# locals {
# s3_bucket_id = module.s3-bucket[0].bucket.id # handle invalid reference in storage.location.template parameter reference
# }
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ resource "aws_glue_catalog_table" "application_lb_logs" {
"projection.day.format" = "yyyy/MM/dd"
"projection.day.interval" = "1"
"projection.day.interval.unit" = "DAYS"
"storage.location.template" = var.existing_bucket_name != "" ? "s3://${var.existing_bucket_name}/${var.application_name}/AWSLogs/${var.account_number}/elasticloadbalancing/${var.region}/$${day}" : "s3://${local.s3_bucket_id}/${var.application_name}/AWSLogs/${var.account_number}/elasticloadbalancing/${var.region}/$${day}"
"storage.location.template" = var.existing_bucket_name != "" ? "s3://${var.existing_bucket_name}/${var.application_name}/AWSLogs/${var.account_number}/elasticloadbalancing/${var.region}/$${day}" : "s3://${module.s3-bucket[0].bucket.id}/${var.application_name}/AWSLogs/${var.account_number}/elasticloadbalancing/${var.region}/$${day}"
}
storage_descriptor {
location = var.existing_bucket_name != "" ? "s3://${var.existing_bucket_name}/${var.application_name}/AWSLogs/${var.account_number}/elasticloadbalancing/${var.region}/" : "s3://${module.s3-bucket[0].bucket.id}/${var.application_name}/AWSLogs/${var.account_number}/elasticloadbalancing/${var.region}/"
Expand Down

0 comments on commit 5392b11

Please sign in to comment.