【发布时间】:2019-07-08 22:48:35
【问题描述】:
我正在尝试使用 Terraform 在 Amazon EKS 上创建 K8s 集群。所有代码都在github上:https://github.com/amorfis/aws-eks-terraform
access_key 和 secret 是为具有必要策略的用户配置的,如 README.md 中所示。
我运行terraform init,然后运行terraform apply,但它失败并出现以下错误:
module.eks.null_resource.update_config_map_aws_auth (local-exec): error: unable to recognize "aws_auth_configmap.yaml": Unauthorized
我还检查了模块,它看起来应该创建 2 个文件:aws_auth_configmap.yaml 和 kube_config.yaml,但我可以看到创建了 2 个不同的文件:kubeconfig_eks-cluster-created-with-tf 和 config-map-aws-auth_eks-cluster-created-with-tf.yaml。
【问题讨论】:
标签: amazon-web-services kubernetes terraform amazon-eks