amazon-web-services - 可以对通过 terraformer 生成的文件运行 terraform 命令
问题描述
我有通过 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 节点。
解决方案
您的启动模板变量似乎不正确。您可能有一些需要纠正的工作节点代码。您是否尝试使用EKS 节点组?
推荐阅读
- android - 将 Dispatcher.Main 与 delay() 一起使用是个好主意吗?
- splunk - 获取整个事件的当前进程状态
- debugging - How to load debug symbols for the whole OVMF UEFI image in gdb?
- php - orderby meta_value_num 和页面属性 order
- c# - .Net core JWT 自定义过期令牌响应
- java - 如何使用 swagger-maven-plugin 序列化类的 Instant 字段?
- swift - NSTextView的插入点绘制位置异常
- html - 如何修复使按钮重叠的表单
- android - 如何在android屏幕共享期间在webrtc中获取手机的内部声音
- kubernetes - Kubernetes 中每个部署可以配置多少个 pod?