Skip to content

Commit 8ad49ab

Browse files
mrzarquonroboquat
authored andcommitted
remove global S3 access policy
1 parent 49fc7b9 commit 8ad49ab

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

install/infra/modules/eks/storage.tf

-12
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ resource "aws_iam_user_policy_attachment" "attachment" {
5757
policy_arn = aws_iam_policy.policy[0].arn
5858
}
5959

60-
resource "aws_iam_user_policy_attachment" "full_access_attachment" {
61-
count = var.create_external_storage ? 1 : 0
62-
user = aws_iam_user.bucket_storage[0].name
63-
policy_arn = "arn:aws:iam::aws:policy/AmazonS3FullAccess"
64-
}
65-
6660
resource "aws_iam_access_key" "bucket_storage_user" {
6761
count = var.create_external_storage ? 1 : 0
6862
user = aws_iam_user.bucket_storage[0].name
@@ -129,12 +123,6 @@ resource "aws_iam_user_policy_attachment" "registry_attachment" {
129123
policy_arn = aws_iam_policy.policy_registry[count.index].arn
130124
}
131125

132-
resource "aws_iam_user_policy_attachment" "full_access_registry_attachment" {
133-
count = var.create_external_storage_for_registry_backend ? 1 : 0
134-
user = aws_iam_user.bucket_registry[count.index].name
135-
policy_arn = "arn:aws:iam::aws:policy/AmazonS3FullAccess"
136-
}
137-
138126
resource "aws_iam_access_key" "bucket_registry_user" {
139127
count = var.create_external_storage_for_registry_backend ? 1 : 0
140128
user = aws_iam_user.bucket_registry[count.index].name

0 commit comments

Comments
 (0)