I am creating two EKS templates and one VPC template. In VPC template I have created 3 private and 3 public subnets which is working fine. So, I want one EKS should be in public and one EKS should be in private subnets. So how can do it via cloudformation.
Type: List<AWS::EC2::Subnet::Id>
This gives me list of subnets which is 6.
Ec2SubnetId:
!Select [0, !Ref SubnetIds]
This selects 1st subnet from all subnets. But I am not sure how to select 3 particular public or private subnet only in cloudformation.