Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add module.this.enabled check to listener's count #97

Merged
merged 5 commits into from
Aug 18, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add module.this.enabled to listener
  • Loading branch information
nitrocode committed Aug 2, 2021
commit a59c7ae9027062639bb4572988712364cc2f759c
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ resource "aws_lb_target_group" "default" {
resource "aws_lb_listener" "http_forward" {
#bridgecrew:skip=BC_AWS_GENERAL_43 - Skipping Ensure that load balancer is using TLS 1.2.
#bridgecrew:skip=BC_AWS_NETWORKING_29 - Skipping Ensure ALB Protocol is HTTPS
count = var.http_enabled && var.http_redirect != true ? 1 : 0
count = module.this.enabled && var.http_enabled && var.http_redirect != true ? 1 : 0
load_balancer_arn = join("", aws_lb.default.*.arn)
port = var.http_port
protocol = "HTTP"
Expand Down