Use AWS tools to create a virtual private cloud (VPC) with subnets.
A functional EKS-compliant VPC is a prerequisite for EKS cluster deployments. AWS provides a CloudFormation template that creates a configuration that supports EKS cluster deployments. Use the template to create a VPC with subnets. For more information about VPCs and subnets for EKS, see
Amazon EKS VPC and subnet requirements and considerations
Prerequisites
Log in to your AWS account.
Procedure
- To create a VPC for lifecycle management of your EKS clusters, follow the procedure at https://docs.aws.amazon.com/eks/latest/userguide/creating-a-vpc.html in the Amazon EKS documentation.
- Use the procedure entitled Public and private subnets.
- Use the URL for
IPv4
subnets.
https://s3.us-west-2.amazonaws.com/amazon-eks/cloudformation/2020-10-29/amazon-eks-vpc-private-subnets.yaml
Results
The template creates a VPC with two public subnets and two private subnets.
Note: Clusters must have outbound access.
What to do next
After you have created the VPC, you can create an account credential and start provisioning EKS clusters.