We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55176d7 commit 0434eb9Copy full SHA for 0434eb9
terraform/account-wide-infrastructure/modules/athena/athena.tf
@@ -1,7 +1,7 @@
1
resource "aws_athena_database" "reporting-db" {
2
name = var.database
3
4
- bucket = aws_s3_bucket.target-data-bucket.bucket
+ bucket = data.aws_s3_bucket.target-data-bucket.bucket
5
6
# encryption_configuration {
7
# encryption_option = "SSE_KMS"
terraform/account-wide-infrastructure/modules/athena/s3.tf
@@ -50,3 +50,7 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "athena" {
50
}
51
52
53
+
54
+data "aws_s3_bucket" "target-data-bucket" {
55
+ bucket = "target-data-bucket"
56
+}
0 commit comments