We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
resource "aws_security_group_rule" "securitygroups_rules" { for_each = local.security_groups description = "Access between node groups." type = "ingress" from_port = 0 to_port = 65535 protocol = "all" source_security_group_id = split(",", each.key)[0] security_group_id = split(",", each.key)[1] } data "aws_security_groups" "securitygroups" { tags = { "${local.cluster_tag}" = "owned" } } locals { cluster_tag = var.existing_k8s_cluster_name != null ? "kubernetes.io/cluster/${var.existing_k8s_cluster_name}" : "kubernetes.io/cluster/${local.cluster_name}" security_groups = toset(flatten([ for source in data.aws_security_groups.securitygroups.ids : [ for target in data.aws_security_groups.securitygroups.ids : "${source},${target}" if source != target ] ])) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: