mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-26 00:41:27 -06:00
config: make the tests a bit more intense
This commit is contained in:
parent
bdeb278728
commit
81bfa8970a
@ -67,10 +67,14 @@ const resourceGraphValue = `
|
||||
root: root
|
||||
root -> aws_security_group.firewall
|
||||
root -> aws_instance.web
|
||||
root -> aws_load_balancer.weblb
|
||||
aws_security_group.firewall
|
||||
aws_instance.web
|
||||
aws_instance.web -> aws_security_group.firewall
|
||||
aws_load_balancer.weblb
|
||||
aws_load_balancer.weblb -> aws_instance.web
|
||||
root
|
||||
root -> aws_security_group.firewall
|
||||
root -> aws_instance.web
|
||||
root -> aws_load_balancer.weblb
|
||||
`
|
||||
|
@ -3,13 +3,16 @@ variable "foo" {
|
||||
description = "bar";
|
||||
}
|
||||
|
||||
resource "aws_security_group" "firewall" {
|
||||
}
|
||||
resource "aws_security_group" "firewall" {}
|
||||
|
||||
resource aws_instance "web" {
|
||||
resource "aws_instance" "web" {
|
||||
ami = "${var.foo}"
|
||||
security_groups = [
|
||||
"foo",
|
||||
"${aws_security_group.firewall.foo}"
|
||||
]
|
||||
}
|
||||
|
||||
resource "aws_load_balancer" "weblb" {
|
||||
members = "${aws_instance.web.id_list}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user