mirror of
https://github.com/hashicorp/terraform.git
synced 2026-06-09 08:58:34 -04:00
These changes allow cloud blocks to be overridden by backend blocks and vice versa; the logic follows the current backend behavior of a block overriding a preceding block in full, with no merges.
13 lines
186 B
HCL
13 lines
186 B
HCL
terraform {
|
|
backend "foo" {
|
|
path = "relative/path/to/terraform.tfstate"
|
|
}
|
|
}
|
|
|
|
resource "aws_instance" "web" {
|
|
ami = "ami-1234"
|
|
security_groups = [
|
|
"foo",
|
|
"bar",
|
|
]
|
|
}
|