问题描述
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
之后,它应该可以工作!