terraform 変数固定
code:go
locals {
example_instance_type = "t3.nano"
}
localsで指定した変数は変えられない。
code:linux
$ terraform plan -var 'example_instance_type=t3.micro'
Error: Value for undeclared variable
A variable named "example_instance_type" was assigned on the command line, but
the root module does not declare a variable of that name. To use this value,
add a "variable" block to the configuration.