-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(query): fix terraform query for ingress/egress description
Signed-off-by: Felipe Avelar <felipe.avelar@outlook.com>
- Loading branch information
1 parent
a143128
commit 96a4d6e
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
assets/queries/terraform/aws/security_group_rules_without_description/test/negative2.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
resource "aws_security_group" "negative2" { | ||
count = min(var.haproxy_external_node_count + var.monitor_node_count, 1) | ||
|
||
name = "${var.prefix}-external-http-https" | ||
description = "Allow main HTTP / HTTPS" | ||
vpc_id = local.vpc_id | ||
|
||
ingress { | ||
description = "Enable HTTP access for select VMs" | ||
from_port = 80 | ||
to_port = 80 | ||
protocol = "tcp" | ||
cidr_blocks = ["0.0.0.0/0"] | ||
} | ||
|
||
ingress { | ||
description = "Enable HTTPS access for select VMs" | ||
from_port = 443 | ||
to_port = 443 | ||
protocol = "tcp" | ||
cidr_blocks = ["0.0.0.0/0"] | ||
} | ||
|
||
tags = { | ||
Name = "${var.prefix}-external-http-https" | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
assets/queries/terraform/aws/security_group_rules_without_description/test/positive2.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
resource "aws_security_group" "positive2" { | ||
count = min(var.haproxy_external_node_count + var.monitor_node_count, 1) | ||
|
||
name = "${var.prefix}-external-http-https" | ||
description = "Allow main HTTP / HTTPS" | ||
vpc_id = local.vpc_id | ||
|
||
ingress { | ||
description = "Enable HTTP access for select VMs" | ||
from_port = 80 | ||
to_port = 80 | ||
protocol = "tcp" | ||
cidr_blocks = ["0.0.0.0/0"] | ||
} | ||
|
||
ingress { | ||
from_port = 443 | ||
to_port = 443 | ||
protocol = "tcp" | ||
cidr_blocks = ["0.0.0.0/0"] | ||
} | ||
|
||
tags = { | ||
Name = "${var.prefix}-external-http-https" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters