Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit af53a3f

Browse files
authored
Merge pull request #218 from mr-miles/patch-1
Set up http_api access correctly
2 parents 1a441ac + a2cb3e9 commit af53a3f

File tree

1 file changed

+1
-1
lines changed
  • modules/consul-security-group-rules

1 file changed

+1
-1
lines changed

modules/consul-security-group-rules/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ resource "aws_security_group_rule" "allow_http_api_inbound" {
6868
}
6969

7070
resource "aws_security_group_rule" "allow_https_api_inbound" {
71-
count = var.enable_https_port ? 1 : 0
71+
count = var.enable_https_port && length(var.allowed_inbound_cidr_blocks) >= 1 ? 1 : 0
7272
type = "ingress"
7373
from_port = var.https_api_port
7474
to_port = var.https_api_port

0 commit comments

Comments
 (0)