|
@@ -130,6 +130,17 @@ resource "aws_security_group_rule" "customer_portal_alb_http" {
|
|
|
cidr_blocks = [ var.environment == "test" ? "10.0.0.0/8" : "0.0.0.0/0", ]
|
|
|
}
|
|
|
|
|
|
+# Needed for Sensu Check from the proxy in test
|
|
|
+resource "aws_security_group_rule" "customer_portal_sensu_check" {
|
|
|
+ count = var.environment == "test" ? 1 : 0
|
|
|
+ protocol = "tcp"
|
|
|
+ type = "ingress"
|
|
|
+ from_port = 443
|
|
|
+ to_port = 443
|
|
|
+ security_group_id = aws_security_group.customer_portal_alb.id
|
|
|
+ cidr_blocks = [ "${var.proxy_public_ip}/32", ]
|
|
|
+}
|
|
|
+
|
|
|
resource "aws_security_group_rule" "customer_portal_alb" {
|
|
|
protocol = "tcp"
|
|
|
type = "egress"
|
|
@@ -137,4 +148,5 @@ resource "aws_security_group_rule" "customer_portal_alb" {
|
|
|
to_port = 443
|
|
|
security_group_id = aws_security_group.customer_portal_alb.id
|
|
|
source_security_group_id = aws_security_group.customer_portal.id
|
|
|
-}
|
|
|
+}
|
|
|
+
|