Last active
April 20, 2017 02:14
-
-
Save chrislovecnm/c6cff95c0d13d14d7f9c3cb362bc01e1 to your computer and use it in GitHub Desktop.
Kops k8s node IAM Role
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//All the resource "*" we can prune down to a | |
//"Resource": "arn:aws:iam::ACCOUNTNUMBER:role/ROLENAME" | |
//which is tied to a VPC | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"ec2:Describe*" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"route53:ChangeResourceRecordSets", | |
"route53:GetChange", | |
"route53:GetHostedZone", | |
"route53:ListHostedZones", | |
"route53:ListResourceRecordSets" | |
], | |
"Resource": "*" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:PutObject", | |
"s3:GetObject", | |
"s3:DeleteObject" | |
], | |
"Resource": "arn:aws:s3:::*" | |
}, | |
// need to test this more with encrypted volumes | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"kms:Decrypt", | |
"kms:ReEncrypt*", | |
"kms:GenerateDataKey*", | |
"kms:DescribeKey", | |
"kms:CreateGrant", | |
"kms:ListGrants", | |
"kms:RevokeGrant" | |
], | |
"Resource": "*" | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment