Resource Schema of AWS::EC2::IPAMPool 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"
description = "example pool"
ipam_scope_id = awscc_ec2_ipam.example.private_default_scope_id
locale = data.aws_region.current.name
tags = [{
key = "Modified By"
value = "AWSCC"
}]
}
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
}
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
allocation_default_netmask_length = 24
allocation_max_netmask_length = 25
allocation_min_netmask_length = 22
allocation_resource_tags = [{
key = "CidrSource"
value = "FromIPAM"
}]
}
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"
auto_import = true
ipam_scope_id = awscc_ec2_ipam.example.private_default_scope_id
locale = data.aws_region.current.name
}
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"
}
]
}
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 = "ipv6"
ipam_scope_id = awscc_ec2_ipam.example.public_default_scope_id
locale = data.aws_region.current.name
aws_service = "ec2"
public_ip_source = "byoip"
publicly_advertisable = true
}
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 = "ipv6"
ipam_scope_id = awscc_ec2_ipam.example.public_default_scope_id
locale = data.aws_region.current.name
aws_service = "ec2"
public_ip_source = "amazon"
}
address_family
(String) The address family of the address space in this pool. Either IPv4 or IPv6.ipam_scope_id
(String) The Id of the scope this pool is a part of.allocation_default_netmask_length
(Number) The default netmask length for allocations made from this pool. This value is used when the netmask length of an allocation isn't specified.allocation_max_netmask_length
(Number) The maximum allowed netmask length for allocations made from this pool.allocation_min_netmask_length
(Number) The minimum allowed netmask length for allocations made from this pool.allocation_resource_tags
(Attributes Set) When specified, an allocation will not be allowed unless a resource has a matching set of tags. (see below for nested schema)auto_import
(Boolean) Determines what to do if IPAM discovers resources that haven't been assigned an allocation. If set to true, an allocation will be made automatically.aws_service
(String) Limits which service in Amazon Web Services that the pool can be used in.description
(String)locale
(String) The region of this pool. If not set, this will default to "None" which will disable non-custom allocations. If the locale has been specified for the source pool, this value must match.provisioned_cidrs
(Attributes Set) A list of cidrs representing the address space available for allocation in this pool. (see below for nested schema)public_ip_source
(String) The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Default is byoip
.publicly_advertisable
(Boolean) Determines whether or not address space from this pool is publicly advertised. Must be set if and only if the pool is IPv6.source_ipam_pool_id
(String) The Id of this pool's source. If set, all space provisioned in this pool must be free space provisioned in the parent pool.source_resource
(Attributes) The resource associated with this pool's space. Depending on the ResourceType, setting a SourceResource changes which space can be provisioned in this pool and which types of resources can receive allocations (see below for nested schema)tags
(Attributes Set) An array of key-value pairs to apply to this resource. (see below for nested schema)arn
(String) The Amazon Resource Name (ARN) of the IPAM Pool.id
(String) Uniquely identifies the resource.ipam_arn
(String) The Amazon Resource Name (ARN) of the IPAM this pool is a part of.ipam_pool_id
(String) Id of the IPAM Pool.ipam_scope_arn
(String) The Amazon Resource Name (ARN) of the scope this pool is a part of.ipam_scope_type
(String) Determines whether this scope contains publicly routable space or space for a private networkpool_depth
(Number) The depth of this pool in the source pool hierarchy.state
(String) The state of this pool. This can be one of the following values: "create-in-progress", "create-complete", "modify-in-progress", "modify-complete", "delete-in-progress", or "delete-complete"state_message
(String) An explanation of how the pool arrived at it current state.allocation_resource_tags
Required:
key
(String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.value
(String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.provisioned_cidrs
Required:
cidr
(String) Represents a single IPv4 or IPv6 CIDRsource_resource
Required:
resource_id
(String)resource_owner
(String)resource_region
(String)resource_type
(String)tags
Required:
key
(String) The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.value
(String) The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.Import is supported using the following syntax:
$ terraform import awscc_ec2_ipam_pool.example <resource ID>