Giter VIP home page Giter VIP logo

terraform-networking-github-cidrs's Introduction

Terraform Networking GitHub CIDRs module

Rolls-up large lists of CIDR ranges into a smaller list of Class B CIDR ranges. The idea of the module came from the limitation on Storage Accounts only allowing up to 200 CIDRs in it's Firewall. Many services have more possible CIDR ranges than this for example GitHub Actions have the potential of almost 1700 CIDR possiblities. Using this module will constrain the CIDRs to the count passed as a variable by rolling up smaller cidrs into larger ranges as needed.

For now this module only works with the GitHub Meta API's CIDRs for various features like; Actions, Dependabot, Git, Packages, etc. See the raw API, https://api.github.com/meta.

Important, if a range is rolled-up to fit the cidr_count_limit understand that IP addresses not intended will be included in the output

only IPv4's are included since many Azure networking rules only accept these

Usage

refer to the example in examples\github_actions

module "github_action_cidrs" {
  source = "github.com/trentmillar/terraform-networking-github-cidrs?ref=main"

  cidr_type        = "actions"
  cidr_count_limit = 200
}

Inputs

Name Description Options Type Default Required
cidr_count_limit Constrains the CIDRs returned. If there are more CIDRs than this limit CIDRs will be rolled up in Class B or A ranges number 200 yes
cidr_type Specify the service CIDR's returned actions, api, hooks, web, git, packages, pages, importer, packages, dependabot string actions yes

Outputs

Name Description
cidrs List of CIDR ranges that fit within the count limit

terraform-networking-github-cidrs's People

Contributors

trentmillar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.