Resource Schema of AWS::EC2::IPAMPoolCidr Type
data "aws_region" "current" {}
resource "awscc_ec2_ipam" "example" {
operating_regions = [
{
region_name = data.aws_region.current.name
}
]
}
resource "awscc_ec2_ipam_pool" "example" {
address_family = "ipv4"
ipam_scope_id = awscc_ec2_ipam.example.private_default_scope_id
locale = data.aws_region.current.name
}
resource "awscc_ec2_ipam_pool_cidr" "example" {
ipam_pool_id = awscc_ec2_ipam_pool.example.id
cidr = "10.0.0.0/16"
}
data "aws_region" "current" {}
resource "awscc_ec2_ipam" "example" {
operating_regions = [
{
region_name = data.aws_region.current.name
}
]
}
resource "awscc_ec2_ipam_pool" "level1" {
address_family = "ipv4"
ipam_scope_id = awscc_ec2_ipam.example.private_default_scope_id
locale = data.aws_region.current.name
}
resource "awscc_ec2_ipam_pool_cidr" "level1_cidr1" {
ipam_pool_id = awscc_ec2_ipam_pool.level1.id
cidr = "10.0.0.0/16"
}
resource "awscc_ec2_ipam_pool" "level_2" {
address_family = "ipv4"
ipam_scope_id = awscc_ec2_ipam.example.private_default_scope_id
locale = data.aws_region.current.name
source_ipam_pool_id = awscc_ec2_ipam_pool.level1.id
}
resource "awscc_ec2_ipam_pool_cidr" "level2_cidr1" {
ipam_pool_id = awscc_ec2_ipam_pool.level_2.id
netmask_length = 24
}
ipam_pool_id
(String) Id of the IPAM Pool.cidr
(String) Represents a single IPv4 or IPv6 CIDRnetmask_length
(Number) The desired netmask length of the provision. If set, IPAM will choose a block of free space with this size and return the CIDR representing it.id
(String) Uniquely identifies the resource.ipam_pool_cidr_id
(String) Id of the IPAM Pool Cidr.state
(String) Provisioned state of the cidr.Import is supported using the following syntax:
$ terraform import awscc_ec2_ipam_pool_cidr.example <resource ID>