Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to cluster after adding "default_tags" to aws provider #1651

Closed
gligaTrickest opened this issue Oct 19, 2021 · 4 comments
Closed

Comments

@gligaTrickest
Copy link

Description

Terraform resources were already existing so this was an update, the only thing that I changed was adding default_tags to the aws provider like so:

 provider "aws" {
   region = var.region
+  default_tags {
+    tags = {
+      Env = "dev"
+    }
+  }
 }

What happened after this is bunch of cluster connection issues like:

│ Error: Get "http://localhost/api/v1/namespaces/kube-system/configmaps/aws-auth": dial tcp 127.0.0.1:80: connect: connection refused
│ 
│   with module.cluster.module.eks.kubernetes_config_map.aws_auth[0],
│   on .terraform/modules/cluster.eks/aws_auth.tf line 63, in resource "kubernetes_config_map" "aws_auth":
│   63: resource "kubernetes_config_map" "aws_auth" {

When I remove default_tags everything works.

Versions

Terraform v1.0.7
on darwin_arm64

  • provider registry.terraform.io/gavinbunney/kubectl v1.13.0
  • provider registry.terraform.io/hashicorp/aws v3.63.0
  • provider registry.terraform.io/hashicorp/cloudinit v2.2.0
  • provider registry.terraform.io/hashicorp/helm v2.2.0
  • provider registry.terraform.io/hashicorp/kubernetes v2.6.0
  • provider registry.terraform.io/hashicorp/local v2.1.0
  • provider registry.terraform.io/hashicorp/random v3.1.0
  • provider registry.terraform.io/kbst/kustomization v0.5.0
  • provider registry.terraform.io/terraform-aws-modules/http v2.4.1

terraform-aws-modules/eks/aws : 17.22.0

Reproduction

Steps to reproduce the behavior:
Add default_tags to the aws provider.

Code Snippet to Reproduce

 provider "aws" {
   region = var.region
+  default_tags {
+    tags = {
+      Env = "dev"
+    }
+  }
 }

Expected behavior

Plan to pass.

Actual behavior

Bunch of failed cluster failed connection errors.

@daroga0002
Copy link
Contributor

it rather looks for misconfigured kubernetes provider.

Please paste your module ocnfiguration and kubernetes provider config as without this we cannot help

@gligaTrickest
Copy link
Author

it rather looks for misconfigured kubernetes provider.

Please paste your module ocnfiguration and kubernetes provider config as without this we cannot help

understood, will try to create whole new cluster and debug in that direction, will report back, ty

@gligaTrickest
Copy link
Author

actual issue:
#911 (comment)

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants