Jenkins3-X |破坏地形|错误-如果未完全创建EKS |

问题描述

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

更改/包含https://

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

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

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...