Resource Schema of AWS::EC2::IPAMAllocation 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
provisioned_cidrs = [
{
cidr = "10.0.0.0/16"
}
]
}
resource "awscc_ec2_ipam_allocation" "example" {
ipam_pool_id = awscc_ec2_ipam_pool.example.id
description = "reserved using cidr"
cidr = "10.0.0.0/32"
}
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
provisioned_cidrs = [
{
cidr = "10.0.0.0/16"
}
]
}
resource "awscc_ec2_ipam_allocation" "example" {
ipam_pool_id = awscc_ec2_ipam_pool.example.id
description = "reserved using netmask length"
netmask_length = 32
}
ipam_pool_id
(String) Id of the IPAM Pool.cidr
(String) Represents an IPAM custom allocation of a single IPv4 or IPv6 CIDRdescription
(String)netmask_length
(Number) The desired netmask length of the allocation. 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_allocation_id
(String) Id of the allocation.Import is supported using the following syntax:
$ terraform import awscc_ec2_ipam_allocation.example <resource ID>