我正在尝试在AWS(https://www.terraform.io/docs/providers/aws/d/ssm_parameter.html)中定义一些SSM参数。
这是我相关的Terraform代码:
data "aws_ssm_parameter" "team_name" {
name = "TEST"
value = var.test
}
它抛出此错误:
Error: "value": this field cannot be set
on myproject.tf line 57, in data "aws_ssm_parameter" "team_name":
57: data "aws_ssm_parameter" "team_name" {
如何通过terraform将值设置到SSM参数存储中?
答案 0 :(得分:0)
应该是resource
而不是data
resource "aws_ssm_parameter" "team_name" {