File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11version : 2
2- module_version : " 1.5.2 "
2+ module_version : " 1.5.3 "
33
44tests :
55 - name : Basic example
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ resource "aws_security_group" "load_balancer_sg" {
77}
88
99resource "aws_vpc_security_group_egress_rule" "lb_http_towards_server" {
10+ count = var. load_balancer_security_group_id == null ? 1 : 0
1011 security_group_id = local. load_balancer_security_group_id
1112
1213 description = " Allow all traffic to the server"
@@ -29,6 +30,7 @@ resource "aws_vpc_security_group_egress_rule" "lb_mqtt_towards_server" {
2930}
3031
3132resource "aws_vpc_security_group_ingress_rule" "tls" {
33+ count = var. load_balancer_security_group_id == null ? 1 : 0
3234 security_group_id = local. load_balancer_security_group_id
3335
3436 description = " Accept HTTP connections on port 443"
@@ -51,6 +53,7 @@ resource "aws_vpc_security_group_ingress_rule" "mqtt" {
5153}
5254
5355resource "aws_vpc_security_group_ingress_rule" "http_lb_to_server" {
56+ count = var. load_balancer_security_group_id == null ? 1 : 0
5457 security_group_id = var. server_security_group_id
5558
5659 description = " Allow http connections from the load balancer"
You can’t perform that action at this time.
0 commit comments