Commit 83bd076d authored by Marco Londero's avatar Marco Londero Committed by GitHub

Allow empty "egress_cidr_blocks" (#93)

Co-authored-by: default avatarJoe Niland <joe@originalmind.com.au>
Co-authored-by: default avataractions-bot <58130806+actions-bot@users.noreply.github.com>
parent 8c43259c
...@@ -10,7 +10,7 @@ resource "aws_security_group" "default" { ...@@ -10,7 +10,7 @@ resource "aws_security_group" "default" {
} }
resource "aws_security_group_rule" "egress" { resource "aws_security_group_rule" "egress" {
count = module.this.enabled && var.use_existing_security_groups == false ? 1 : 0 count = module.this.enabled && var.use_existing_security_groups == false && length(var.egress_cidr_blocks) > 0 ? 1 : 0
description = "Allow outbound traffic from existing cidr blocks" description = "Allow outbound traffic from existing cidr blocks"
from_port = 0 from_port = 0
to_port = 0 to_port = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment