Skip to content

Commit 9d83513

Browse files
authored
DL-148-create-bucket-and-grant-permission-for-datahub-YAML-ingestion (#2577)
* create datahub config bucket * grand D&I the read permission
1 parent b0c5eaa commit 9d83513

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

terraform/compliance/s3.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Feature: S3
1313
@exclude_module.file_sync_destination_nec.aws_s3_bucket.log_bucket
1414
@exclude_module.arcus_data_storage.aws_s3_bucket.bucket
1515
@exclude_module.user_uploads.aws_s3_bucket.bucket
16+
@exclude_module.datahub_config.aws_s3_bucket.bucket
1617

1718
# This rule is in place for legacy buckets created with the deprecated block within the aws_s3_bucket resource
1819
Scenario: Data must be encrypted at rest for buckets created using server_side_encryption_configuration property within bucket resource

terraform/core/05-departments.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ module "department_data_and_insight" {
165165
paths = []
166166
actions = ["s3:Get*", "s3:List*", ]
167167
},
168+
{
169+
bucket_arn = module.datahub_config.bucket_arn
170+
kms_key_arn = module.datahub_config.kms_key_arn
171+
paths = []
172+
actions = ["s3:Get*", "s3:List*", ]
173+
},
168174
]
169175
}
170176

terraform/core/10-aws-s3-utility-buckets.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,21 @@ module "user_uploads" {
164164
include_backup_policy_tags = false
165165
}
166166

167+
#===============================================================================
168+
# DataHub Config Bucket to store the DataHub YAML configuration files
169+
#===============================================================================
170+
171+
module "datahub_config" {
172+
source = "../modules/s3-bucket"
173+
tags = module.tags.values
174+
project = var.project
175+
environment = var.environment
176+
identifier_prefix = local.identifier_prefix
177+
bucket_name = "datahub-config"
178+
bucket_identifier = "datahub-config"
179+
include_backup_policy_tags = false
180+
}
181+
167182
#===============================================================================
168183
# MWAA Buckets
169184
#===============================================================================

0 commit comments

Comments
 (0)