terraform/command/testdata/013upgrade-preserves-comments/expected/main.tf

24 lines
448 B
Terraform
Raw Normal View History

resource foo_instance a {}
resource bar_instance b {}
terraform {
# Provider requirements go here
required_providers {
# Pin bar to this version
bar = {
source = "hashicorp/bar"
version = "0.5.0"
}
# An explicit requirement
baz = {
# Comment inside the block should stay
source = "foo/baz"
}
# Foo is required
foo = {
source = "hashicorp/foo"
version = "1.0.0"
}
}
}