awslabs / crossplane-on-eks

Crossplane bespoke composition blueprints for AWS resources
Apache License 2.0
307 stars 109 forks source link

[Bug]: Kubernetes cluster unreachable #171

Closed LeoFVO closed 1 month ago

LeoFVO commented 3 months ago

Welcome to AWS Blueprints for Crossplane!

AWS Blueprints for Crossplane Release version

v0.1.0

What is your environment, configuration and the example used?

Using terraform boostrap. Default configuration.

What did you do and What did you see instead?

I'm trying to setup the stack to try it. I run the following command:

terraform init
terraform apply
# The error occur a first time after this command
aws eks --region eu-west-1 update-kubeconfig --name crossplane-blueprints --alias crossplane-blueprints
terraform apply
# error occur again

image

Also, I tried to manually access the cluster, and it seems to be unreachable: image

It's seems to be a problem in the cluster config right ? Any ideas ?

Additional Information

No response

candonov commented 3 months ago

Hi @LeoFVO,

Check if your cluster was created in eu-west-1 region. The default region is us-east-1: https://github.com/awslabs/crossplane-on-eks/blob/7b77a32d5128de1277114c0ee759423cb90d1da9/bootstrap/terraform/variables.tf#L4-L8 Check if you have AWS_REGION env vars set.

Hope that helps, Christina

eddavies-BV commented 2 months ago

I had a smilier issue as I was using a profile for my AWS provider to resolve I add a profile argument to the helm provider: args = ["eks", "get-token", "--cluster-name", local.name, "--region", var.region, "--profile", "myawsprofile"]

candonov commented 1 month ago

I cannot reproduce on my side, if it is still an issue please re-open and provide more details.