/terraform-cidr-expand

Terraform module to expand CIDR address to IP address list

Primary LanguageHCLApache License 2.0Apache-2.0

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.