Skip to content

Instantly share code, notes, and snippets.

@dallasmarlow
Created May 6, 2022 11:13
Show Gist options
  • Save dallasmarlow/59d651b621eb8a049e785ca8827e9374 to your computer and use it in GitHub Desktop.
Save dallasmarlow/59d651b621eb8a049e785ca8827e9374 to your computer and use it in GitHub Desktop.
EKS IAM policy
{
"Statement": [
{
"Action": [
"eks:UpdateClusterVersion",
"eks:UpdateClusterConfig",
"eks:UntagResource",
"eks:TagResource",
"eks:ListClusters",
"eks:DescribeCluster",
"eks:DeleteCluster",
"eks:CreateCluster",
"eks:AssociateEncryptionConfig"
],
"Effect": "Allow",
"Resource": "arn:*:eks:*:*:cluster/*",
"Sid": ""
},
{
"Action": [
"iam:listAttachedRolePolicies",
"iam:CreateServiceLinkedRole"
],
"Effect": "Allow",
"Resource": "arn:aws:iam::*:role/aws-service-role/*",
"Sid": ""
},
{
"Action": "iam:PassRole",
"Effect": "Allow",
"Resource": "<EKS Cluster Role ARN>",
"Sid": ""
},
{
"Action": [
"kms:DescribeKey",
"kms:CreateGrant"
],
"Effect": "Allow",
"Resource": "<EKS KMS Key ARN>",
"Sid": ""
}
],
"Version": "2012-10-17"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment