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

feat: Matrix Rule #16

Merged
merged 42 commits into from
Sep 14, 2022
Merged

feat: Matrix Rule #16

merged 42 commits into from
Sep 14, 2022

Conversation

aidanmelen
Copy link
Owner

@aidanmelen aidanmelen commented Sep 4, 2022

Fixes

Proposed Changes

  • Add support computed matrix ingress rules.
  • Add support computed matrix egress rules.

For example:

matrix_ingress = {
    rules = [
      {
        rule = "https-443-tcp"
      },
      {
        from_port = 80
        to_port   = 80
        protocol  = "tcp"
      }
    ]
    cidr_blocks = ["10.0.0.0/24", "10.0.1.0/24"]
    # ipv6_cidr_blocks = []
    prefix_list_ids = ["pl-1111111111"]
    source_security_group_ids = "sg-1111111111"
    # self = false
  }

this will create 6 rules:

  1. https-443-tcp from ["10.0.0.0/24", "10.0.1.0/24"] and ["pl-1111111111"]
  2. https-443-tcp from sg-1111111111
  3. 80-80-tcp from ["10.0.0.0/24", "10.0.1.0/24"] and ["pl-1111111111"]
  4. 80-80-tcp from sg-1111111111

uncommenting ipv6_cidr_blocks and self will create even more matrix rules.

@aidanmelen aidanmelen changed the title init computed_ingress_matrix feat: Rule Matrix Sep 5, 2022
@aidanmelen aidanmelen added the enhancement New feature or request label Sep 5, 2022
@aidanmelen aidanmelen marked this pull request as ready for review September 14, 2022 23:39
@aidanmelen aidanmelen merged commit 7abe55d into main Sep 14, 2022
@aidanmelen aidanmelen deleted the matrix branch September 14, 2022 23:40
@aidanmelen aidanmelen changed the title feat: Rule Matrix feat: Matrix Rule Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant