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

Commit

Permalink
Merge pull request #218 from mr-miles/patch-1
Browse files Browse the repository at this point in the history
Set up http_api access correctly
  • Loading branch information
brikis98 authored May 3, 2021
2 parents 1a441ac + a2cb3e9 commit af53a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/consul-security-group-rules/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ resource "aws_security_group_rule" "allow_http_api_inbound" {
}

resource "aws_security_group_rule" "allow_https_api_inbound" {
count = var.enable_https_port ? 1 : 0
count = var.enable_https_port && length(var.allowed_inbound_cidr_blocks) >= 1 ? 1 : 0
type = "ingress"
from_port = var.https_api_port
to_port = var.https_api_port
Expand Down

0 comments on commit af53a3f

Please sign in to comment.