Skip to content

Error Code: NatGatewayLimitExceeded - Even with a higher limit than the error reports. #560

Closed
@chs-bnet

Description

@chs-bnet

What happened?
Occasionally getting "limit exceeded" errors when the limit isn't actually exceeded.

Error:

AWS::EC2::NatGateway/NATGateway: CREATE_FAILED – "Performing this operation would exceed the limit of 5 NAT gateways (Service: AmazonEC2; Status Code: 400; Error Code: NatGatewayLimitExceeded; Request ID:  2eda19f-18ef-49c0-869e-52b14f558997)"

What you expected to happen?
The limits for the account where this is being run have been increased to 20. At the time of EKS creation, there are only 7 active NAT Gateways. There shouldn't be any error.

How to reproduce it?
It doesn't happen every time, but maybe 1/3 of the time and it seems random. But to reproduce just do eksctl create cluster in an account with a limit higher than 5 NAT Gateways.

Versions

$ eksctl version
version.Info{BuiltAt:"", GitCommit:"", GitTag:"0.1.20-rc.3"}

$ uname -a
Linux chs-vm 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Distribution: Ubuntu 16.04.5 LTS

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.3", GitCommit:"721bfa751924da8d1680787490c54b9179b1fed0", GitTreeState:"clean", BuildDate:"2019-02-01T20:08:12Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}

Using aws-iam-authenticator. Version doesn't output a version number, but the latest per installation instructions from Amazon as of about 2 weeks ago.

Logs
Since it's random, it's hard to collect the logs. But I will update the issue with them when I can.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions