詹金斯3-X |地形破坏 |错误 - 如果 EKS 未完全创建 |

Jenkins3-X | Terraform Destroy | Error - if EKS not fully created |

销毁 EKS 集群时出错,相关问题 GitHub

Error: "url" has to use HTTPS scheme (i.e. begin with https://)

  on .terraform/modules/eks-jx.cluster.eks/irsa.tf line 14, in resource "aws_iam_openid_connect_provider" "oidc_provider":
  14:   url             = flatten(concat(aws_eks_cluster.this[*].identity[*].oidc.0.issuer, [""]))[0]
terraform -v
Terraform v0.13.4
+ provider registry.terraform.io/hashicorp/aws v3.11.0
+ provider registry.terraform.io/hashicorp/kubernetes v1.11.1
+ provider registry.terraform.io/hashicorp/local v1.4.0
+ provider registry.terraform.io/hashicorp/null v2.1.2
+ provider registry.terraform.io/hashicorp/random v2.3.0
+ provider registry.terraform.io/hashicorp/template v2.2.0

和JX: jx version version: 3.0.633

为了解决这个问题,我必须编辑:

vi .terraform/modules/eks-jx.cluster.eks/irsa.tf

来自:

  url             = flatten(concat(aws_eks_cluster.this[*].identity[*].oidc.0.issuer, [""]))[0]

change/include https://:

  url             = flatten(concat(aws_eks_cluster.this[*].identity[*].oidc.0.issuer, ["https://"]))[0]

在 运行 terraform destroy 之后它应该可以工作!