diff --git a/terraform/environment/providers/aws/infra/resources/eks/scripts/001-csi-driver/001-01-setup_iam_role_csi_driver.sh b/terraform/environment/providers/aws/infra/resources/eks/scripts/001-csi-driver/001-01-setup_iam_role_csi_driver.sh index 947c1f9a..17c7e5d7 100755 --- a/terraform/environment/providers/aws/infra/resources/eks/scripts/001-csi-driver/001-01-setup_iam_role_csi_driver.sh +++ b/terraform/environment/providers/aws/infra/resources/eks/scripts/001-csi-driver/001-01-setup_iam_role_csi_driver.sh @@ -52,7 +52,7 @@ cat < kms-key-for-encryption-on-ebs.json "kms:ListGrants", "kms:RevokeGrant" ], - "Resource": ["arn:aws:kms:ap-southeast-1:YOUR_AWS_ACCOUNT:key/4d7ef7e8-cef9-4482-bc2e-87c742544ee5"], + "Resource": ["arn:aws:kms:ap-southeast-1:YOUR_AWS_ACCOUNT:key/HASH_ID"], "Condition": { "Bool": { "kms:GrantIsForAWSResource": "true" @@ -68,7 +68,7 @@ cat < kms-key-for-encryption-on-ebs.json "kms:GenerateDataKey*", "kms:DescribeKey" ], - "Resource": ["arn:aws:kms:ap-southeast-1:YOUR_AWS_ACCOUNT:key/4d7ef7e8-cef9-4482-bc2e-87c742544ee5"] + "Resource": ["arn:aws:kms:ap-southeast-1:YOUR_AWS_ACCOUNT:key/HASH_ID"] } ] } diff --git a/terraform/environment/providers/aws/infra/resources/eks/scripts/001-csi-driver/kms-key-for-encryption-on-ebs.json b/terraform/environment/providers/aws/infra/resources/eks/scripts/001-csi-driver/kms-key-for-encryption-on-ebs.json index 1352ca24..58011052 100644 --- a/terraform/environment/providers/aws/infra/resources/eks/scripts/001-csi-driver/kms-key-for-encryption-on-ebs.json +++ b/terraform/environment/providers/aws/infra/resources/eks/scripts/001-csi-driver/kms-key-for-encryption-on-ebs.json @@ -8,7 +8,7 @@ "kms:ListGrants", "kms:RevokeGrant" ], - "Resource": ["arn:aws:kms:ap-southeast-1:YOUR_AWS_ACCOUNT:key/4d7ef7e8-cef9-4482-bc2e-87c742544ee5"], + "Resource": ["arn:aws:kms:ap-southeast-1:YOUR_AWS_ACCOUNT:key/HASH_ID"], "Condition": { "Bool": { "kms:GrantIsForAWSResource": "true" @@ -24,7 +24,7 @@ "kms:GenerateDataKey*", "kms:DescribeKey" ], - "Resource": ["arn:aws:kms:ap-southeast-1:YOUR_AWS_ACCOUNT:key/4d7ef7e8-cef9-4482-bc2e-87c742544ee5"] + "Resource": ["arn:aws:kms:ap-southeast-1:YOUR_AWS_ACCOUNT:key/HASH_ID"] } ] }