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

single-port-sg supports source_security_group_id #292

Open
ketzacoatl opened this issue Feb 5, 2020 · 0 comments
Open

single-port-sg supports source_security_group_id #292

ketzacoatl opened this issue Feb 5, 2020 · 0 comments

Comments

@ketzacoatl
Copy link
Contributor

ATM, our ingress rules are like:

# ingress rule for tcp, if enabled
resource "aws_security_group_rule" "tcp_ingress" {
  count             = local.tcp
  type              = "ingress"
  description       = "${var.description} (tcp)"
  from_port         = var.port
  to_port           = var.port
  protocol          = "tcp"
  cidr_blocks       = var.cidr_blocks
  security_group_id = var.security_group_id
}

But it is sometimes nice to use source_security_group_id instead of cidr_blocks. The module should support both.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant