Skip to content

Instantly share code, notes, and snippets.

@danmaas
Last active December 27, 2018 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danmaas/c1cded2945625776bfb4b612c0287876 to your computer and use it in GitHub Desktop.
Save danmaas/c1cded2945625776bfb4b612c0287876 to your computer and use it in GitHub Desktop.
AWS IAM policy for alb-ingress-controller (see https://github.com/helm/charts/tree/master/incubator/aws-alb-ingress-controller). This grants the necessary permissions to create and manage ALBs for supporting Kubernetes Ingress resources.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["acm:DescribeCertificate", "acm:ListCertificates"],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"ec2:AuthorizeSecurityGroupIngress",
"ec2:CreateSecurityGroup",
"ec2:CreateTags",
"ec2:DeleteSecurityGroup",
"ec2:DescribeInstances",
"ec2:DescribeSecurityGroups",
"ec2:DescribeSubnets",
"ec2:DescribeTags",
"ec2:DescribeVpcs",
"ec2:ModifyInstanceAttribute",
"ec2:RevokeSecurityGroupIngress"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": ["elasticloadbalancing:*"],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": ["iam:GetServerCertificate", "iam:ListServerCertificates"],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": ["waf-regional:GetWebACLForResource"],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": ["tag:GetResources"],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"waf:GetWebACL",
"waf:AssociateWebACL",
"waf:DisassociateWebACL"
],
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment