mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-16 20:01:12 -05:00
A lingering FIXME caused missing configuration from provider config blocks in the json output of terraform plan. This fixes the regression and adds a test. For the sake of testing, I added an optional attribute to the show test provider, which resulted in the providers schema test getting an update - not a bad addition, but we can always add a test-specific provider schema as needed.
17 lines
200 B
HCL
17 lines
200 B
HCL
provider "test" {
|
|
region = "somewhere"
|
|
}
|
|
|
|
variable "test_var" {
|
|
default = "bar"
|
|
}
|
|
|
|
resource "test_instance" "test" {
|
|
ami = var.test_var
|
|
count = 3
|
|
}
|
|
|
|
output "test" {
|
|
value = var.test_var
|
|
}
|