Skip to content

Instantly share code, notes, and snippets.

@chrislovecnm
Created May 11, 2017 03:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrislovecnm/a93941b4afbbd5afe746354af0cfddcc to your computer and use it in GitHub Desktop.
Save chrislovecnm/a93941b4afbbd5afe746354af0cfddcc to your computer and use it in GitHub Desktop.
json IAM policy for kops kubernetes node
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:DescribeInstances"
],
"Resource": [
"*"
],
"Sid": "kopsK8sNodeEC2Perms"
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:ListObject"
],
"Resource": [
"arn:aws:s3:::mybucket/myclustername",
"arn:aws:s3:::mybucket/myclustername/*"
],
"Sid": "kopsK8sStateStoreAccess"
},
{
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::mybucket"
],
"Sid": "kopsK8sStateStoreAccessList"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment