-2

销毁 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

4

1 回答 1

1

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

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

并来自:

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

更改/包括https://

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

运行后terraform destroy,它应该工作!

于 2020-10-27T22:11:16.960 回答