Skip to content

Kubernetes/EKS Script Issues in 03-init-cluster.sh #711

Description

@nsutphen1

In the command:

aws eks create-cluster \ --region us-east-1 \ --name production-overview \ --kubernetes-version 1.17 \ --scaling-config minSize=1,maxSize=10,desiredSize=3 \ --role-arn "$(aws iam get-role --role-name production-overview-eksClusterRole --query 'Role.Arn' --output text)" \ --resources-vpc-config "subnetIds=$(aws ec2 describe-subnets --filters Name=availabilityZone,Values=us-east-1a,us-east-1b,us-east-1c --query 'Subnets[*].SubnetId' --output text | sed -e 's/\t/,/g'),securityGroupIds=$(aws ec2 describe-security-groups --group-names production-overview-eks --output text --query 'SecurityGroups[0].GroupId')"

It seems that --scaling-config is not recognized by this command.

Additionally, the script is not detecting any subnets, and fails when the --scaling-config is taken out.

Here:
aws eks create-cluster \ --region us-east-1 \ --name production-overview \ --kubernetes-version 1.17 \ --role-arn "$(aws iam get-role --role-name production-overview-eksClusterRole --query 'Role.Arn' --output text)" \ --resources-vpc-config "subnetIds=$(aws ec2 describe-subnets --query 'Subnets[*].SubnetId' --output text | sed -e 's/\t/,/g'),securityGroupIds=$(aws ec2 describe-security-groups --group-names production-overview-eks --output text --query 'SecurityGroups[0].GroupId')"
is the command I have at the moment, and
Here:

An error occurred (InvalidParameterException) when calling the CreateCluster operation: The subnet ID 'subnet-74901610' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidSubnetID.NotFound; Request ID: f285f0ec-7705-4306-a80e-cd878a8b96be; Proxy: null)

is the error message I am receiving.

Any help on this would be appreciated.

Thank you

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions