Skip to content

Commit

Permalink
Added var for sg egress
Browse files Browse the repository at this point in the history
  • Loading branch information
Falpangaea committed Feb 20, 2020
1 parent a8eab99 commit f87b14a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions alb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ resource "aws_security_group_rule" "alb_egress" {
from_port = 0
to_port = 65535
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
cidr_blocks = var.alb_sg_cidr_egress
security_group_id = aws_security_group.alb[0].id
}

5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ variable "alb_sg_cidr" {
default = ["0.0.0.0/0"]
}

variable "alb_sg_cidr_egress" {
description = "List of CIDR blocks for ALB SG, default [\"0.0.0.0/0\"]"
default = ["0.0.0.0/0"]
}

variable "alb_internal" {
description = "Configure ALB as internal-only (default false)"
default = "false"
Expand Down
4 changes: 0 additions & 4 deletions versions.tf

This file was deleted.

0 comments on commit f87b14a

Please sign in to comment.