Expand description
Previews a CIDR from an IPAM address pool. Only works for private IPv4.
§Example Usage
Basic usage:
resources:
example:
type: aws:ec2:VpcIpamPreviewNextCidr
properties:
ipamPoolId: ${exampleVpcIpamPool.id}
netmaskLength: 28
disallowedCidrs:
- 172.2.0.0/32
options:
dependsOn:
- ${exampleVpcIpamPoolCidr}
exampleVpcIpamPoolCidr:
type: aws:ec2:VpcIpamPoolCidr
name: example
properties:
ipamPoolId: ${exampleVpcIpamPool.id}
cidr: 172.20.0.0/16
exampleVpcIpamPool:
type: aws:ec2:VpcIpamPool
name: example
properties:
addressFamily: ipv4
ipamScopeId: ${exampleVpcIpam.privateDefaultScopeId}
locale: ${current.name}
exampleVpcIpam:
type: aws:ec2:VpcIpam
name: example
properties:
operatingRegions:
- regionName: ${current.name}
variables:
current:
fn::invoke:
function: aws:getRegion
arguments: {}
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments