mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-24 15:36:26 -06:00
17 lines
323 B
Terraform
17 lines
323 B
Terraform
|
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}"
|
||
|
]
|
||
|
}
|