Skip to content

Commit

Permalink
fix(karpenter-policy): Added kms permissions for karpenter
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Malinowski authored and Edward Malinowski committed Feb 12, 2024
1 parent 0f98195 commit 6be519c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions gen3/bin/kube-setup-karpenter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,37 @@ gen3_deploy_karpenter() {
"Effect": "Allow",
"Resource": "*",
"Sid": "ConditionalEC2Termination"
},
{
"Action": [
"kms:*"
],
"Effect": "Allow",
"Resource": "*",
"Sid": "Karpenter"
},
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"kms:GetPublicKey",
"kms:ListKeyPolicies",
"kms:ListRetirableGrants",
"kms:PutKeyPolicy",
"kms:GetKeyPolicy",
"kms:ListResourceTags",
"kms:RetireGrant",
"kms:ListGrants",
"kms:GetParametersForImport",
"kms:DescribeCustomKeyStores",
"kms:ListKeys",
"kms:GetKeyRotationStatus",
"kms:ListAliases",
"kms:RevokeGrant",
"kms:DescribeKey",
"kms:CreateGrant"
],
"Resource": "*"
}
],
"Version": "2012-10-17"
Expand Down

0 comments on commit 6be519c

Please sign in to comment.