opentofu/terraform/test-fixtures/graph-builder-modules/main.tf

17 lines
323 B
Terraform
Raw Normal View History

module "consul" {
foo = "${aws_security_group.firewall.foo}"
source = "./consul"
}
provider "aws" {}
resource "aws_security_group" "firewall" {}
resource "aws_instance" "web" {
security_groups = [
"foo",
"${aws_security_group.firewall.foo}",
"${module.consul.security_group}"
]
}