Skip to content

Commit 7bb8242

Browse files
committed
NRL-1188 Call existing bucket in correct file
1 parent b75bbd0 commit 7bb8242

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

terraform/infrastructure/data.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ data "external" "current-info" {
4141
"../../scripts/get-current-info.sh",
4242
]
4343
}
44+
45+
data "aws_s3_bucket" "source-data-bucket" {
46+
count = var.use_shared_resources ? 1 : 0
47+
bucket = "${local.shared_prefix}-source-data-bucket"
48+
}

terraform/infrastructure/modules/firehose/s3.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,3 @@ resource "aws_iam_policy" "firehose-alert--s3-read" {
106106
]
107107
})
108108
}
109-
110-
data "aws_s3_bucket" "source-data-bucket" {
111-
bucket = "${local.shared_prefix}-source-data-bucket"
112-
}

0 commit comments

Comments
 (0)