Error: creating cluster: running eksctl create cluster: /usr/local/bin/eksctl: exit status 1
[ℹ] eksctl version 0.35.0
[ℹ] using region us-east-1
Error: checking AWS STS access – cannot get role ARN for current session: InvalidClientTokenId: The security token included in the request is invalid.
status code: 403, request id: 6b4d22f1-0507-45e4-a199-3903df80a0f7
But if I ran eksctl create cluster command directly in the same shell, it worked fine.
When I ran terraform apply, I got
Error: creating cluster: running
eksctl create cluster
: /usr/local/bin/eksctl: exit status 1 [ℹ] eksctl version 0.35.0 [ℹ] using region us-east-1 Error: checking AWS STS access – cannot get role ARN for current session: InvalidClientTokenId: The security token included in the request is invalid. status code: 403, request id: 6b4d22f1-0507-45e4-a199-3903df80a0f7But if I ran eksctl create cluster command directly in the same shell, it worked fine.
What could have caused the issue?