Skip to content

Commit da014b9

Browse files
authored
limit the fme permission but add unrestricted access in raw zone (#1963)
1 parent 837cc3f commit da014b9

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

terraform/core/23-FME-iam.tf

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ data "aws_iam_policy_document" "fme_access_to_s3" {
115115
"s3:GetObjectVersion",
116116
]
117117
resources = [
118-
"${module.raw_zone.bucket_arn}/*",
119-
"${module.refined_zone.bucket_arn}/*",
120-
"${module.trusted_zone.bucket_arn}/*",
118+
"${module.raw_zone.bucket_arn}/unrestricted/*",
121119
"${module.athena_storage.bucket_arn}/primary/*"
122120
]
123121
}
@@ -128,8 +126,7 @@ data "aws_iam_policy_document" "fme_access_to_s3" {
128126
"s3:PutObject"
129127
]
130128
resources = [
131-
"${module.refined_zone.bucket_arn}/*",
132-
"${module.trusted_zone.bucket_arn}/*",
129+
"${module.raw_zone.bucket_arn}/unrestricted/*",
133130
"${module.athena_storage.bucket_arn}/primary/*"
134131
]
135132
}
@@ -144,8 +141,6 @@ data "aws_iam_policy_document" "fme_access_to_s3" {
144141
resources = [
145142
module.athena_storage.kms_key_arn,
146143
module.raw_zone.kms_key_arn,
147-
module.refined_zone.kms_key_arn,
148-
module.trusted_zone.kms_key_arn
149144
]
150145
}
151-
}
146+
}

0 commit comments

Comments
 (0)