我有一个包含如下数据的文件。xyz
可以是任何东西,所以我想替换它。
variable "azure_spoke_gateways" {
default = {
spoke1 = {
name = "xyz"
size = "max"
vpc = "azure_spoke1_vnet"
},
}
}
variable "google_spoke_gateways" {
default = {
spoke1 = {
name = "xyz"
size = "max"
vpc = "azure_spoke1_vnet"
},
}
}
我只想替换variable azure_spoke_gateways
's 的值name
。所需的输出是:
variable "azure_spoke_gateways" {
default = {
spoke1 = {
name = "MYSTRING"
size = "max"
vpc = "azure_spoke1_vnet"
},
}
}