【发布时间】:2021-10-29 19:09:23
【问题描述】:
我有通过 terraformer 生成的 tf 文件,当我运行“terraform plan/refresh”时,它给了我一堆错误,例如:
Error: Invalid combination of arguments
on instance.tf line 400, in resource "aws_instance" "worker-node":
400: id = "lt-xxxxxxxxxxxxxxx"
"launch_template.0.id": only one of
`launch_template.0.id,launch_template.0.name` can be specified, but
`launch_template.0.id,launch_template.0.name` were specified.
Error: Invalid combination of arguments
on instance.tf line 401, in resource "aws_instance" "worker-node":
401: name = "eksctl-workernode"
"launch_template.0.name": only one of
`launch_template.0.id,launch_template.0.name` can be specified, but
`launch_template.0.id,launch_template.0.name` were specified.
这只是关于 EC2 的问题,对于每个其他服务,它都会给出不同的错误。导致错误的实例是 EKS 节点。
【问题讨论】:
-
产生错误的代码是什么?
-
如何查看错误码?
标签: amazon-web-services kubernetes amazon-ec2 terraform terraform-provider-aws