Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to create AWS EKS cluster with eksctl

Unable to create AWS EKS cluster with eksctl from Windows 10 PC. Here is the command which I'm executing

eksctl create cluster --name revit --version 1.17 --region ap-southeast-2 --fargate

Version of eksctl: 0.25.0

AWS CLI Version: aws-cli/2.0.38 Python/3.7.7 Windows/10 exe/AMD64

Error on executing create cluster command

2020-08-08T19:05:35+10:00 [ℹ]  eksctl version 0.25.0
2020-08-08T19:05:35+10:00 [ℹ]  using region ap-southeast-2
2020-08-08T19:05:35+10:00 [!]  retryable error (RequestError: send request failed
caused by: Put "http://169.254.169.254/latest/api/token": dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 54.121635ms
2020-08-08T19:05:35+10:00 [!]  retryable error (RequestError: send request failed
caused by: Put "http://169.254.169.254/latest/api/token": dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 86.006168ms
like image 844
Suresh Raja Avatar asked Dec 05 '25 14:12

Suresh Raja


1 Answers

I had the same error, I've got rid of it providing my AWS credentials for programmatic access (AWS Access Key ID, AWS Secret Access Key):

$ aws configure

Next time I used eksctl it just didn't try to authenticate on its own and command passed.

like image 54
astasiak Avatar answered Dec 11 '25 17:12

astasiak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!