gavinbunney / terraform-provider-kubectl

Terraform provider to handle raw kubernetes manifest yaml files
https://registry.terraform.io/providers/gavinbunney/kubectl
Mozilla Public License 2.0
609 stars 102 forks source link

<name> failed to fetch resource from kubernetes: the server could not find the requested resource #287

Closed abhiverma111 closed 5 months ago

abhiverma111 commented 5 months ago

Post EKS 1.27 upgradation getting the below error while creating the resource "kubectl_manifest" "constraint_template" using terraform.

It works fine with EKS 1.26

image

malhomaid commented 5 months ago

I'm having the same issue

alekc commented 5 months ago

As mentioned in https://github.com/gavinbunney/terraform-provider-kubectl/issues/270, this is a pretty much abandoned project. The fix has been rolled out in the fork

terraform {
  required_version = ">= 0.13"

  required_providers {
    kubectl = {
      source  = "alekc/kubectl"
      version = ">= 2.0.2"
    }
  }
abhiverma111 commented 5 months ago

thanks @alekc, post using your kubectl provider issue is fixed.