mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-08 23:23:59 -06:00
17 lines
323 B
HCL
17 lines
323 B
HCL
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}"
|
|
]
|
|
}
|