I am trying to use AWS Batch with Amazon EKS but cannot create the Compute Environment through AWS CDK. My current eks cluster is configured with public and private access with many CIDR blocks but not 0.0.0.0/0
. Here is the error:
12:05:13 PM | CREATE_FAILED | AWS::Batch::ComputeEnvironment | batchjobtest Resource handler returned message: "EKS cluster must use API server endpoint that has public access and is accessible to the public internet.
I don't want to allow 0.0.0.0/0
CIDR block on my EKS cluster. Is there any other way around it?
Please check this. https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html