Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reoring/cidrsubnets
https://github.com/reoring/cidrsubnets
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/reoring/cidrsubnets
- Owner: reoring
- Created: 2023-06-27T06:37:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-27T06:38:37.000Z (over 1 year ago)
- Last Synced: 2025-01-27T17:59:00.300Z (16 days ago)
- Language: HCL
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Usage
```bash
$ terraform apply
var.newbits
each specify the number of additional network prefix bits for one returned address range. The return value is therefore a list with one element per newbits argument, each a string containing an address range in CIDR notation.Enter a value: [3,3,3]
var.prefix
prefix must be given in CIDR notation, as defined in RFC 4632 section 3.1.Enter a value: 10.0.0.0/8
Changes to Outputs:
+ result = [
+ "10.0.0.0/11",
+ "10.32.0.0/11",
+ "10.64.0.0/11",
]You can apply this plan to save these new output values to the Terraform state, without changing any real infrastructure.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.Enter a value: yes
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Outputs:
result = tolist([
"10.0.0.0/11",
"10.32.0.0/11",
"10.64.0.0/11",
])
```