Skip to content

Commit 0434eb9

Browse files
committed
NRL-1188 Reference S3 bucket
1 parent 55176d7 commit 0434eb9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

terraform/account-wide-infrastructure/modules/athena/athena.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
resource "aws_athena_database" "reporting-db" {
22
name = var.database
33

4-
bucket = aws_s3_bucket.target-data-bucket.bucket
4+
bucket = data.aws_s3_bucket.target-data-bucket.bucket
55

66
# encryption_configuration {
77
# encryption_option = "SSE_KMS"

terraform/account-wide-infrastructure/modules/athena/s3.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "athena" {
5050
}
5151

5252
}
53+
54+
data "aws_s3_bucket" "target-data-bucket" {
55+
bucket = "target-data-bucket"
56+
}

0 commit comments

Comments
 (0)