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

lookup oidc.eks.us-east-1.amazonaws.com on 10.1.1.2:53: no such host #3258

Closed
ifnazar opened this issue Dec 26, 2024 · 2 comments
Closed

lookup oidc.eks.us-east-1.amazonaws.com on 10.1.1.2:53: no such host #3258

ifnazar opened this issue Dec 26, 2024 · 2 comments

Comments

@ifnazar
Copy link

ifnazar commented Dec 26, 2024

Description

When running Terraform on a network with an EKS VPC Endpoint, the process fails to get data from the tls_certificate resource

The error occurs because the domain oidc.eks.us-east-1.amazonaws.com becomes inaccessible once the EKS VPC Endpoint is created. This behavior is documented by AWS:

Suggestion:

Use the dualstack_oidc_issuer_url to access the tls_certificate data, the dualstack url uses another domain and is not overridden by DNS

Place to fix the code:

Suggested code to be used:

Versions

  • Module version [Required]: v20.31.6

  • Terraform version: 1.9.8

  • Provider version(s):

    • provider registry.terraform.io/hashicorp/aws v5.72.1
    • provider registry.terraform.io/hashicorp/cloudinit v2.3.5
    • provider registry.terraform.io/hashicorp/helm v2.16.1
    • provider registry.terraform.io/hashicorp/kubernetes v2.33.0
    • provider registry.terraform.io/hashicorp/null v3.2.3
    • provider registry.terraform.io/hashicorp/time v0.12.1
    • provider registry.terraform.io/hashicorp/tls v4.0.6

Reproduction Code [Required]

Plain tf code.

Steps to reproduce the behavior:

  • In an AWS network that has an EKS VPC Endpoint, perform terraform plan.

Expected behavior

  • success in terraform planning

Actual behavior

  • terraform planning failed

Terminal Output

| with module.eks.module.eks.data.tls_certificate.this[0],
│ on .terraform/modules/eks.eks/main.tf line 344, in data "tls_certificate" "this":
│ 344: data "tls_certificate" "this" {

│ failed to fetch certificates from URL 'https': Get "https://oidc.eks.us-east-1.amazonaws.com:443/id/???????": dial tcp: lookup
│ oidc.eks.us-east-1.amazonaws.com on 10.1.1.2:53: no such host

@bryantbiggs
Copy link
Member

duplicate of #3237

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 Jan 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants