mattclegg / terraform-cidr-expand

Terraform module to expand CIDR address to IP address list

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CIDR Expand

This Terraform module takes a CIDR-block and returns all IP addresses in the CIDR-block as a list. This allows you to use CIDR notation for IP addresses everywhere and simplify your Terraform interface.

Requirements

Name Version
terraform >= 0.13.0

Resources

No resources.

Inputs

Name Description Type Default Required
cidr The IP address range in CIDR notation. Required format: '0.0.0.0/0' (IPv4) or '::/0' (IPv6) string n/a yes

Outputs

Name Description
ip_addresses List of IP addresses in provided CIDR.

About

Terraform module to expand CIDR address to IP address list

License:Apache License 2.0


Languages

Language:HCL 100.0%