https://github.com/reoring/cidrsubnets
https://github.com/reoring/cidrsubnets
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/reoring/cidrsubnets
- Owner: reoring
- Created: 2023-06-27T06:37:33.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-27T06:38:37.000Z (about 2 years ago)
- Last Synced: 2025-03-19T23:09:27.549Z (4 months 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",
])
```