mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-26 17:01:04 -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}"
|
|
]
|
|
}
|