awslabs / crossplane-on-eks

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

[Bug]: terraform bootstrap fails with kubectl error #86

Closed csantanapr closed 1 year ago

csantanapr commented 1 year ago

Welcome to AWS Blueprints for Crossplane!

AWS Blueprints for Crossplane Release version

latest

What is your environment, configuration and the example used?

the out of the box example for terraform

What did you do and What did you see instead?

normal deployment with terraform

git clone https://github.com/awslabs/crossplane-on-eks
cd bootstrap/terraform
terraform init
terraform apply -auto-approve

Errored out with

│ Error: aws-controller-config failed to create kubernetes rest client for update of resource: Get "https://xxx.gr7.us-east-1.eks.amazonaws.com/api?timeout=32s": dial tcp: lookup xxx.gr7.us-east-1.eks.amazonaws.com on [xxx:a601:a604:500::1]:53: no such host
│ 
│   with module.eks_blueprints_kubernetes_addons.module.crossplane[0].kubectl_manifest.aws_controller_config[0],
│   on .terraform/modules/eks_blueprints_kubernetes_addons/modules/kubernetes-addons/crossplane/main.tf line 20, in resource "kubectl_manifest" "aws_controller_config":
│   20: resource "kubectl_manifest" "aws_controller_config" {

Additional Information

No response