ef161e1c1b
These new functions allow Terraform to be used for network address space planning tasks, and make it easier to produce reusable modules that contain or depend on network infrastructure. For example: - cidrsubnet allows an aws_subnet to derive its CIDR prefix from its parent aws_vpc. - cidrhost allows a fixed IP address for a resource to be assigned within an address range defined elsewhere. - cidrnetmask provides the dotted-decimal form of a prefix length that is accepted by some systems such as routing tables and static network interface configuration files. The bulk of the work here is done by an external library I authored called go-cidr. It is MIT licensed and was implemented primarily for the purpose of using it within Terraform. It has its own unit tests and so the unit tests within this change focus on simple success cases and on the correct handling of the various error cases. |
||
---|---|---|
.. | ||
atlas.html.md | ||
environment-variables.html.md | ||
index.html.md | ||
interpolation.html.md | ||
load.html.md | ||
modules.html.md | ||
outputs.html.md | ||
override.html.md | ||
providers.html.md | ||
resources.html.md | ||
syntax.html.md | ||
variables.html.md |