Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS: Creation of load balancer fails due to missing policies #23

Open
vkurup opened this issue Apr 9, 2021 · 0 comments
Open

AWS: Creation of load balancer fails due to missing policies #23

vkurup opened this issue Apr 9, 2021 · 0 comments

Comments

@vkurup
Copy link
Contributor

vkurup commented Apr 9, 2021

When you run this role the first time on a stack that has no load balancers, the role succeeds but the load balancer is not created.

We believe this is because some permissions have not been given to the EKS service role that is automatically created (as described in this comment)

I was able to get around this by purging the ingress controller, adding this policy to the EKS service role in the IAM admin and then re-running the role:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "ec2:DescribeInternetGateways",
                "ec2:DescribeAddresses",
                "ec2:DescribeAccountAttributes"
            ],
            "Resource": "*"
        }
    ]
}

@copelco worked around it in a better way, by running this CLI command (source):

aws iam create-service-linked-role --aws-service-name "elasticloadbalancing.amazonaws.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant