Skip to content

Commit

Permalink
fix: add roles for NLB support on EKS
Browse files Browse the repository at this point in the history
fixes #133
  • Loading branch information
jstrachan authored and errordeveloper committed Jul 25, 2018
1 parent 4b913d9 commit a6fcd02
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
15 changes: 15 additions & 0 deletions pkg/eks/assets/1.10.3/2018-06-05/amazon-eks-service-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ Resources:
- arn:aws:iam::aws:policy/AmazonEKSServicePolicy
- arn:aws:iam::aws:policy/AmazonEKSClusterPolicy

NetworkLoadBalancerPolicyForAamazonEKS:
Type: AWS::IAM::Policy
Properties:
PolicyName: !Sub "${AWS::StackName}-NLB"
Roles: [!Ref AWSServiceRoleForAmazonEKS]
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Resource: '*'
Action:
- elasticloadbalancing:*
- ec2:CreateSecurityGroup
- ec2:Describe*

Outputs:

RoleArn:
Expand Down
10 changes: 5 additions & 5 deletions pkg/eks/cfn_templates.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a6fcd02

Please # to comment.