terraform/config/test-fixtures/resource_graph_cycle.tf

19 lines
345 B
HCL

variable "foo" {
default = "bar";
description = "bar";
}
provider "aws" {
foo = "${aws_security_group.firewall.value}"
}
resource "aws_security_group" "firewall" {}
resource "aws_instance" "web" {
ami = "${var.foo}"
security_groups = [
"foo",
"${aws_security_group.firewall.foo}"
]
}