published on Thursday, Oct 8, 2026 by Pulumi
published on Thursday, Oct 8, 2026 by Pulumi
Provides a resource to associate additional IPv6 CIDR blocks with a VPC.
The aws.ec2.VpcIpv6CidrBlockAssociation resource allows IPv6 CIDR blocks to be added to the VPC.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.ec2.Vpc("test", {cidrBlock: "10.0.0.0/16"});
const testVpcIpv6CidrBlockAssociation = new aws.ec2.VpcIpv6CidrBlockAssociation("test", {
ipv6IpamPoolId: testAwsVpcIpamPool.id,
vpcId: test.id,
});
import pulumi
import pulumi_aws as aws
test = aws.ec2.Vpc("test", cidr_block="10.0.0.0/16")
test_vpc_ipv6_cidr_block_association = aws.ec2.VpcIpv6CidrBlockAssociation("test",
ipv6_ipam_pool_id=test_aws_vpc_ipam_pool["id"],
vpc_id=test.id)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
test, err := ec2.NewVpc(ctx, "test", &ec2.VpcArgs{
CidrBlock: pulumi.String("10.0.0.0/16"),
})
if err != nil {
return err
}
_, err = ec2.NewVpcIpv6CidrBlockAssociation(ctx, "test", &ec2.VpcIpv6CidrBlockAssociationArgs{
Ipv6IpamPoolId: pulumi.Any(testAwsVpcIpamPool.Id),
VpcId: test.ID().ToIDOutput().ToStringOutput(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Ec2.Vpc("test", new()
{
CidrBlock = "10.0.0.0/16",
});
var testVpcIpv6CidrBlockAssociation = new Aws.Ec2.VpcIpv6CidrBlockAssociation("test", new()
{
Ipv6IpamPoolId = testAwsVpcIpamPool.Id,
VpcId = test.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Vpc;
import com.pulumi.aws.ec2.VpcArgs;
import com.pulumi.aws.ec2.VpcIpv6CidrBlockAssociation;
import com.pulumi.aws.ec2.VpcIpv6CidrBlockAssociationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new Vpc("test", VpcArgs.builder()
.cidrBlock("10.0.0.0/16")
.build());
var testVpcIpv6CidrBlockAssociation = new VpcIpv6CidrBlockAssociation("testVpcIpv6CidrBlockAssociation", VpcIpv6CidrBlockAssociationArgs.builder()
.ipv6IpamPoolId(testAwsVpcIpamPool.id())
.vpcId(test.id())
.build());
}
}
resources:
test:
type: aws:ec2:Vpc
properties:
cidrBlock: 10.0.0.0/16
testVpcIpv6CidrBlockAssociation:
type: aws:ec2:VpcIpv6CidrBlockAssociation
name: test
properties:
ipv6IpamPoolId: ${testAwsVpcIpamPool.id}
vpcId: ${test.id}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_ec2_vpc" "test" {
cidr_block = "10.0.0.0/16"
}
resource "aws_ec2_vpcipv6cidrblockassociation" "test" {
ipv6_ipam_pool_id = testAwsVpcIpamPool.id
vpc_id = aws_ec2_vpc.test.id
}
Create VpcIpv6CidrBlockAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcIpv6CidrBlockAssociation(name: string, args: VpcIpv6CidrBlockAssociationArgs, opts?: CustomResourceOptions);@overload
def VpcIpv6CidrBlockAssociation(resource_name: str,
args: VpcIpv6CidrBlockAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcIpv6CidrBlockAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
vpc_id: Optional[str] = None,
assign_generated_ipv6_cidr_block: Optional[bool] = None,
ipv6_cidr_block: Optional[str] = None,
ipv6_ipam_pool_id: Optional[str] = None,
ipv6_netmask_length: Optional[int] = None,
ipv6_pool: Optional[str] = None,
region: Optional[str] = None)func NewVpcIpv6CidrBlockAssociation(ctx *Context, name string, args VpcIpv6CidrBlockAssociationArgs, opts ...ResourceOption) (*VpcIpv6CidrBlockAssociation, error)public VpcIpv6CidrBlockAssociation(string name, VpcIpv6CidrBlockAssociationArgs args, CustomResourceOptions? opts = null)
public VpcIpv6CidrBlockAssociation(String name, VpcIpv6CidrBlockAssociationArgs args)
public VpcIpv6CidrBlockAssociation(String name, VpcIpv6CidrBlockAssociationArgs args, CustomResourceOptions options)
type: aws:ec2:VpcIpv6CidrBlockAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_ec2_vpc_ipv6_cidr_block_association" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VpcIpv6CidrBlockAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpcIpv6CidrBlockAssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpcIpv6CidrBlockAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcIpv6CidrBlockAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcIpv6CidrBlockAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var vpcIpv6CidrBlockAssociationResource = new Aws.Ec2.VpcIpv6CidrBlockAssociation("vpcIpv6CidrBlockAssociationResource", new()
{
VpcId = "string",
AssignGeneratedIpv6CidrBlock = false,
Ipv6CidrBlock = "string",
Ipv6IpamPoolId = "string",
Ipv6NetmaskLength = 0,
Ipv6Pool = "string",
Region = "string",
});
example, err := ec2.NewVpcIpv6CidrBlockAssociation(ctx, "vpcIpv6CidrBlockAssociationResource", &ec2.VpcIpv6CidrBlockAssociationArgs{
VpcId: pulumi.String("string"),
AssignGeneratedIpv6CidrBlock: pulumi.Bool(false),
Ipv6CidrBlock: pulumi.String("string"),
Ipv6IpamPoolId: pulumi.String("string"),
Ipv6NetmaskLength: pulumi.Int(0),
Ipv6Pool: pulumi.String("string"),
Region: pulumi.String("string"),
})
resource "aws_ec2_vpc_ipv6_cidr_block_association" "vpcIpv6CidrBlockAssociationResource" {
lifecycle {
create_before_destroy = true
}
vpc_id = "string"
assign_generated_ipv6_cidr_block = false
ipv6_cidr_block = "string"
ipv6_ipam_pool_id = "string"
ipv6_netmask_length = 0
ipv6_pool = "string"
region = "string"
}
var vpcIpv6CidrBlockAssociationResource = new VpcIpv6CidrBlockAssociation("vpcIpv6CidrBlockAssociationResource", VpcIpv6CidrBlockAssociationArgs.builder()
.vpcId("string")
.assignGeneratedIpv6CidrBlock(false)
.ipv6CidrBlock("string")
.ipv6IpamPoolId("string")
.ipv6NetmaskLength(0)
.ipv6Pool("string")
.region("string")
.build());
vpc_ipv6_cidr_block_association_resource = aws.ec2.VpcIpv6CidrBlockAssociation("vpcIpv6CidrBlockAssociationResource",
vpc_id="string",
assign_generated_ipv6_cidr_block=False,
ipv6_cidr_block="string",
ipv6_ipam_pool_id="string",
ipv6_netmask_length=0,
ipv6_pool="string",
region="string")
const vpcIpv6CidrBlockAssociationResource = new aws.ec2.VpcIpv6CidrBlockAssociation("vpcIpv6CidrBlockAssociationResource", {
vpcId: "string",
assignGeneratedIpv6CidrBlock: false,
ipv6CidrBlock: "string",
ipv6IpamPoolId: "string",
ipv6NetmaskLength: 0,
ipv6Pool: "string",
region: "string",
});
type: aws:ec2:VpcIpv6CidrBlockAssociation
properties:
assignGeneratedIpv6CidrBlock: false
ipv6CidrBlock: string
ipv6IpamPoolId: string
ipv6NetmaskLength: 0
ipv6Pool: string
region: string
vpcId: string
VpcIpv6CidrBlockAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpcIpv6CidrBlockAssociation resource accepts the following input properties:
- Vpc
Id string - ID of the VPC to make the association with.
- Assign
Generated boolIpv6Cidr Block - Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block. Default is
false. Conflicts withipv6IpamPoolId,ipv6Pool,ipv6CidrBlockandipv6NetmaskLength. - Ipv6Cidr
Block string - IPv6 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using
ipv6NetmaskLength. This parameter is required ifipv6NetmaskLengthis not set and the IPAM pool does not haveallocationDefaultNetmaskset. Conflicts withassignGeneratedIpv6CidrBlock. - Ipv6Ipam
Pool stringId - ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Conflict with
assignGeneratedIpv6CidrBlockandipv6Pool. - Ipv6Netmask
Length int - Netmask length of the IPv6 CIDR you want to allocate to this VPC. Requires specifying a
ipv6IpamPoolId. This parameter is optional if the IPAM pool hasallocationDefaultNetmaskset, otherwise it oripv6CidrBlockare required. Conflicts withipv6CidrBlock. - Ipv6Pool string
- ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Conflicts with
assignGeneratedIpv6CidrBlockandipv6IpamPoolId. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Vpc
Id string - ID of the VPC to make the association with.
- Assign
Generated boolIpv6Cidr Block - Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block. Default is
false. Conflicts withipv6IpamPoolId,ipv6Pool,ipv6CidrBlockandipv6NetmaskLength. - Ipv6Cidr
Block string - IPv6 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using
ipv6NetmaskLength. This parameter is required ifipv6NetmaskLengthis not set and the IPAM pool does not haveallocationDefaultNetmaskset. Conflicts withassignGeneratedIpv6CidrBlock. - Ipv6Ipam
Pool stringId - ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Conflict with
assignGeneratedIpv6CidrBlockandipv6Pool. - Ipv6Netmask
Length int - Netmask length of the IPv6 CIDR you want to allocate to this VPC. Requires specifying a
ipv6IpamPoolId. This parameter is optional if the IPAM pool hasallocationDefaultNetmaskset, otherwise it oripv6CidrBlockare required. Conflicts withipv6CidrBlock. - Ipv6Pool string
- ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Conflicts with
assignGeneratedIpv6CidrBlockandipv6IpamPoolId. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- vpc_
id string - ID of the VPC to make the association with.
- assign_
generated_ boolipv6_ cidr_ block - Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block. Default is
false. Conflicts withipv6IpamPoolId,ipv6Pool,ipv6CidrBlockandipv6NetmaskLength. - ipv6_
cidr_ stringblock - IPv6 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using
ipv6NetmaskLength. This parameter is required ifipv6NetmaskLengthis not set and the IPAM pool does not haveallocationDefaultNetmaskset. Conflicts withassignGeneratedIpv6CidrBlock. - ipv6_
ipam_ stringpool_ id - ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Conflict with
assignGeneratedIpv6CidrBlockandipv6Pool. - ipv6_
netmask_ numberlength - Netmask length of the IPv6 CIDR you want to allocate to this VPC. Requires specifying a
ipv6IpamPoolId. This parameter is optional if the IPAM pool hasallocationDefaultNetmaskset, otherwise it oripv6CidrBlockare required. Conflicts withipv6CidrBlock. - ipv6_
pool string - ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Conflicts with
assignGeneratedIpv6CidrBlockandipv6IpamPoolId. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- vpc
Id String - ID of the VPC to make the association with.
- assign
Generated BooleanIpv6Cidr Block - Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block. Default is
false. Conflicts withipv6IpamPoolId,ipv6Pool,ipv6CidrBlockandipv6NetmaskLength. - ipv6Cidr
Block String - IPv6 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using
ipv6NetmaskLength. This parameter is required ifipv6NetmaskLengthis not set and the IPAM pool does not haveallocationDefaultNetmaskset. Conflicts withassignGeneratedIpv6CidrBlock. - ipv6Ipam
Pool StringId - ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Conflict with
assignGeneratedIpv6CidrBlockandipv6Pool. - ipv6Netmask
Length Integer - Netmask length of the IPv6 CIDR you want to allocate to this VPC. Requires specifying a
ipv6IpamPoolId. This parameter is optional if the IPAM pool hasallocationDefaultNetmaskset, otherwise it oripv6CidrBlockare required. Conflicts withipv6CidrBlock. - ipv6Pool String
- ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Conflicts with
assignGeneratedIpv6CidrBlockandipv6IpamPoolId. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- vpc
Id string - ID of the VPC to make the association with.
- assign
Generated booleanIpv6Cidr Block - Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block. Default is
false. Conflicts withipv6IpamPoolId,ipv6Pool,ipv6CidrBlockandipv6NetmaskLength. - ipv6Cidr
Block string - IPv6 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using
ipv6NetmaskLength. This parameter is required ifipv6NetmaskLengthis not set and the IPAM pool does not haveallocationDefaultNetmaskset. Conflicts withassignGeneratedIpv6CidrBlock. - ipv6Ipam
Pool stringId - ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Conflict with
assignGeneratedIpv6CidrBlockandipv6Pool. - ipv6Netmask
Length number - Netmask length of the IPv6 CIDR you want to allocate to this VPC. Requires specifying a
ipv6IpamPoolId. This parameter is optional if the IPAM pool hasallocationDefaultNetmaskset, otherwise it oripv6CidrBlockare required. Conflicts withipv6CidrBlock. - ipv6Pool string
- ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Conflicts with
assignGeneratedIpv6CidrBlockandipv6IpamPoolId. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- vpc_
id str - ID of the VPC to make the association with.
- assign_
generated_ boolipv6_ cidr_ block - Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block. Default is
false. Conflicts withipv6IpamPoolId,ipv6Pool,ipv6CidrBlockandipv6NetmaskLength. - ipv6_
cidr_ strblock - IPv6 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using
ipv6NetmaskLength. This parameter is required ifipv6NetmaskLengthis not set and the IPAM pool does not haveallocationDefaultNetmaskset. Conflicts withassignGeneratedIpv6CidrBlock. - ipv6_
ipam_ strpool_ id - ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Conflict with
assignGeneratedIpv6CidrBlockandipv6Pool. - ipv6_
netmask_ intlength - Netmask length of the IPv6 CIDR you want to allocate to this VPC. Requires specifying a
ipv6IpamPoolId. This parameter is optional if the IPAM pool hasallocationDefaultNetmaskset, otherwise it oripv6CidrBlockare required. Conflicts withipv6CidrBlock. - ipv6_
pool str - ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Conflicts with
assignGeneratedIpv6CidrBlockandipv6IpamPoolId. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- vpc
Id String - ID of the VPC to make the association with.
- assign
Generated BooleanIpv6Cidr Block - Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block. Default is
false. Conflicts withipv6IpamPoolId,ipv6Pool,ipv6CidrBlockandipv6NetmaskLength. - ipv6Cidr
Block String - IPv6 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using
ipv6NetmaskLength. This parameter is required ifipv6NetmaskLengthis not set and the IPAM pool does not haveallocationDefaultNetmaskset. Conflicts withassignGeneratedIpv6CidrBlock. - ipv6Ipam
Pool StringId - ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Conflict with
assignGeneratedIpv6CidrBlockandipv6Pool. - ipv6Netmask
Length Number - Netmask length of the IPv6 CIDR you want to allocate to this VPC. Requires specifying a
ipv6IpamPoolId. This parameter is optional if the IPAM pool hasallocationDefaultNetmaskset, otherwise it oripv6CidrBlockare required. Conflicts withipv6CidrBlock. - ipv6Pool String
- ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Conflicts with
assignGeneratedIpv6CidrBlockandipv6IpamPoolId. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcIpv6CidrBlockAssociation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Source string - Source that allocated the IP address space. Values:
amazon,byoip,none. - Ipv6Address
Attribute string - Public IPv6 addresses are those advertised on the internet from AWS. Private IP addresses are not and cannot be advertised on the internet from AWS. Values:
public,private.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Source string - Source that allocated the IP address space. Values:
amazon,byoip,none. - Ipv6Address
Attribute string - Public IPv6 addresses are those advertised on the internet from AWS. Private IP addresses are not and cannot be advertised on the internet from AWS. Values:
public,private.
- id string
- The provider-assigned unique ID for this managed resource.
- ip_
source string - Source that allocated the IP address space. Values:
amazon,byoip,none. - ipv6_
address_ stringattribute - Public IPv6 addresses are those advertised on the internet from AWS. Private IP addresses are not and cannot be advertised on the internet from AWS. Values:
public,private.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Source String - Source that allocated the IP address space. Values:
amazon,byoip,none. - ipv6Address
Attribute String - Public IPv6 addresses are those advertised on the internet from AWS. Private IP addresses are not and cannot be advertised on the internet from AWS. Values:
public,private.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Source string - Source that allocated the IP address space. Values:
amazon,byoip,none. - ipv6Address
Attribute string - Public IPv6 addresses are those advertised on the internet from AWS. Private IP addresses are not and cannot be advertised on the internet from AWS. Values:
public,private.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
source str - Source that allocated the IP address space. Values:
amazon,byoip,none. - ipv6_
address_ strattribute - Public IPv6 addresses are those advertised on the internet from AWS. Private IP addresses are not and cannot be advertised on the internet from AWS. Values:
public,private.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Source String - Source that allocated the IP address space. Values:
amazon,byoip,none. - ipv6Address
Attribute String - Public IPv6 addresses are those advertised on the internet from AWS. Private IP addresses are not and cannot be advertised on the internet from AWS. Values:
public,private.
Look up Existing VpcIpv6CidrBlockAssociation Resource
Get an existing VpcIpv6CidrBlockAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VpcIpv6CidrBlockAssociationState, opts?: CustomResourceOptions): VpcIpv6CidrBlockAssociation@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
assign_generated_ipv6_cidr_block: Optional[bool] = None,
ip_source: Optional[str] = None,
ipv6_address_attribute: Optional[str] = None,
ipv6_cidr_block: Optional[str] = None,
ipv6_ipam_pool_id: Optional[str] = None,
ipv6_netmask_length: Optional[int] = None,
ipv6_pool: Optional[str] = None,
region: Optional[str] = None,
vpc_id: Optional[str] = None) -> VpcIpv6CidrBlockAssociationfunc GetVpcIpv6CidrBlockAssociation(ctx *Context, name string, id IDInput, state *VpcIpv6CidrBlockAssociationState, opts ...ResourceOption) (*VpcIpv6CidrBlockAssociation, error)public static VpcIpv6CidrBlockAssociation Get(string name, Input<string> id, VpcIpv6CidrBlockAssociationState? state, CustomResourceOptions? opts = null)public static VpcIpv6CidrBlockAssociation get(String name, Output<String> id, VpcIpv6CidrBlockAssociationState state, CustomResourceOptions options)resources: _: type: aws:ec2:VpcIpv6CidrBlockAssociation get: id: ${id}import {
to = aws_ec2_vpc_ipv6_cidr_block_association.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Assign
Generated boolIpv6Cidr Block - Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block. Default is
false. Conflicts withipv6IpamPoolId,ipv6Pool,ipv6CidrBlockandipv6NetmaskLength. - Ip
Source string - Source that allocated the IP address space. Values:
amazon,byoip,none. - Ipv6Address
Attribute string - Public IPv6 addresses are those advertised on the internet from AWS. Private IP addresses are not and cannot be advertised on the internet from AWS. Values:
public,private. - Ipv6Cidr
Block string - IPv6 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using
ipv6NetmaskLength. This parameter is required ifipv6NetmaskLengthis not set and the IPAM pool does not haveallocationDefaultNetmaskset. Conflicts withassignGeneratedIpv6CidrBlock. - Ipv6Ipam
Pool stringId - ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Conflict with
assignGeneratedIpv6CidrBlockandipv6Pool. - Ipv6Netmask
Length int - Netmask length of the IPv6 CIDR you want to allocate to this VPC. Requires specifying a
ipv6IpamPoolId. This parameter is optional if the IPAM pool hasallocationDefaultNetmaskset, otherwise it oripv6CidrBlockare required. Conflicts withipv6CidrBlock. - Ipv6Pool string
- ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Conflicts with
assignGeneratedIpv6CidrBlockandipv6IpamPoolId. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Vpc
Id string - ID of the VPC to make the association with.
- Assign
Generated boolIpv6Cidr Block - Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block. Default is
false. Conflicts withipv6IpamPoolId,ipv6Pool,ipv6CidrBlockandipv6NetmaskLength. - Ip
Source string - Source that allocated the IP address space. Values:
amazon,byoip,none. - Ipv6Address
Attribute string - Public IPv6 addresses are those advertised on the internet from AWS. Private IP addresses are not and cannot be advertised on the internet from AWS. Values:
public,private. - Ipv6Cidr
Block string - IPv6 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using
ipv6NetmaskLength. This parameter is required ifipv6NetmaskLengthis not set and the IPAM pool does not haveallocationDefaultNetmaskset. Conflicts withassignGeneratedIpv6CidrBlock. - Ipv6Ipam
Pool stringId - ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Conflict with
assignGeneratedIpv6CidrBlockandipv6Pool. - Ipv6Netmask
Length int - Netmask length of the IPv6 CIDR you want to allocate to this VPC. Requires specifying a
ipv6IpamPoolId. This parameter is optional if the IPAM pool hasallocationDefaultNetmaskset, otherwise it oripv6CidrBlockare required. Conflicts withipv6CidrBlock. - Ipv6Pool string
- ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Conflicts with
assignGeneratedIpv6CidrBlockandipv6IpamPoolId. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Vpc
Id string - ID of the VPC to make the association with.
- assign_
generated_ boolipv6_ cidr_ block - Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block. Default is
false. Conflicts withipv6IpamPoolId,ipv6Pool,ipv6CidrBlockandipv6NetmaskLength. - ip_
source string - Source that allocated the IP address space. Values:
amazon,byoip,none. - ipv6_
address_ stringattribute - Public IPv6 addresses are those advertised on the internet from AWS. Private IP addresses are not and cannot be advertised on the internet from AWS. Values:
public,private. - ipv6_
cidr_ stringblock - IPv6 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using
ipv6NetmaskLength. This parameter is required ifipv6NetmaskLengthis not set and the IPAM pool does not haveallocationDefaultNetmaskset. Conflicts withassignGeneratedIpv6CidrBlock. - ipv6_
ipam_ stringpool_ id - ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Conflict with
assignGeneratedIpv6CidrBlockandipv6Pool. - ipv6_
netmask_ numberlength - Netmask length of the IPv6 CIDR you want to allocate to this VPC. Requires specifying a
ipv6IpamPoolId. This parameter is optional if the IPAM pool hasallocationDefaultNetmaskset, otherwise it oripv6CidrBlockare required. Conflicts withipv6CidrBlock. - ipv6_
pool string - ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Conflicts with
assignGeneratedIpv6CidrBlockandipv6IpamPoolId. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- vpc_
id string - ID of the VPC to make the association with.
- assign
Generated BooleanIpv6Cidr Block - Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block. Default is
false. Conflicts withipv6IpamPoolId,ipv6Pool,ipv6CidrBlockandipv6NetmaskLength. - ip
Source String - Source that allocated the IP address space. Values:
amazon,byoip,none. - ipv6Address
Attribute String - Public IPv6 addresses are those advertised on the internet from AWS. Private IP addresses are not and cannot be advertised on the internet from AWS. Values:
public,private. - ipv6Cidr
Block String - IPv6 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using
ipv6NetmaskLength. This parameter is required ifipv6NetmaskLengthis not set and the IPAM pool does not haveallocationDefaultNetmaskset. Conflicts withassignGeneratedIpv6CidrBlock. - ipv6Ipam
Pool StringId - ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Conflict with
assignGeneratedIpv6CidrBlockandipv6Pool. - ipv6Netmask
Length Integer - Netmask length of the IPv6 CIDR you want to allocate to this VPC. Requires specifying a
ipv6IpamPoolId. This parameter is optional if the IPAM pool hasallocationDefaultNetmaskset, otherwise it oripv6CidrBlockare required. Conflicts withipv6CidrBlock. - ipv6Pool String
- ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Conflicts with
assignGeneratedIpv6CidrBlockandipv6IpamPoolId. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- vpc
Id String - ID of the VPC to make the association with.
- assign
Generated booleanIpv6Cidr Block - Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block. Default is
false. Conflicts withipv6IpamPoolId,ipv6Pool,ipv6CidrBlockandipv6NetmaskLength. - ip
Source string - Source that allocated the IP address space. Values:
amazon,byoip,none. - ipv6Address
Attribute string - Public IPv6 addresses are those advertised on the internet from AWS. Private IP addresses are not and cannot be advertised on the internet from AWS. Values:
public,private. - ipv6Cidr
Block string - IPv6 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using
ipv6NetmaskLength. This parameter is required ifipv6NetmaskLengthis not set and the IPAM pool does not haveallocationDefaultNetmaskset. Conflicts withassignGeneratedIpv6CidrBlock. - ipv6Ipam
Pool stringId - ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Conflict with
assignGeneratedIpv6CidrBlockandipv6Pool. - ipv6Netmask
Length number - Netmask length of the IPv6 CIDR you want to allocate to this VPC. Requires specifying a
ipv6IpamPoolId. This parameter is optional if the IPAM pool hasallocationDefaultNetmaskset, otherwise it oripv6CidrBlockare required. Conflicts withipv6CidrBlock. - ipv6Pool string
- ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Conflicts with
assignGeneratedIpv6CidrBlockandipv6IpamPoolId. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- vpc
Id string - ID of the VPC to make the association with.
- assign_
generated_ boolipv6_ cidr_ block - Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block. Default is
false. Conflicts withipv6IpamPoolId,ipv6Pool,ipv6CidrBlockandipv6NetmaskLength. - ip_
source str - Source that allocated the IP address space. Values:
amazon,byoip,none. - ipv6_
address_ strattribute - Public IPv6 addresses are those advertised on the internet from AWS. Private IP addresses are not and cannot be advertised on the internet from AWS. Values:
public,private. - ipv6_
cidr_ strblock - IPv6 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using
ipv6NetmaskLength. This parameter is required ifipv6NetmaskLengthis not set and the IPAM pool does not haveallocationDefaultNetmaskset. Conflicts withassignGeneratedIpv6CidrBlock. - ipv6_
ipam_ strpool_ id - ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Conflict with
assignGeneratedIpv6CidrBlockandipv6Pool. - ipv6_
netmask_ intlength - Netmask length of the IPv6 CIDR you want to allocate to this VPC. Requires specifying a
ipv6IpamPoolId. This parameter is optional if the IPAM pool hasallocationDefaultNetmaskset, otherwise it oripv6CidrBlockare required. Conflicts withipv6CidrBlock. - ipv6_
pool str - ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Conflicts with
assignGeneratedIpv6CidrBlockandipv6IpamPoolId. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- vpc_
id str - ID of the VPC to make the association with.
- assign
Generated BooleanIpv6Cidr Block - Whether to request an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block. Default is
false. Conflicts withipv6IpamPoolId,ipv6Pool,ipv6CidrBlockandipv6NetmaskLength. - ip
Source String - Source that allocated the IP address space. Values:
amazon,byoip,none. - ipv6Address
Attribute String - Public IPv6 addresses are those advertised on the internet from AWS. Private IP addresses are not and cannot be advertised on the internet from AWS. Values:
public,private. - ipv6Cidr
Block String - IPv6 CIDR block for the VPC. CIDR can be explicitly set or it can be derived from IPAM using
ipv6NetmaskLength. This parameter is required ifipv6NetmaskLengthis not set and the IPAM pool does not haveallocationDefaultNetmaskset. Conflicts withassignGeneratedIpv6CidrBlock. - ipv6Ipam
Pool StringId - ID of an IPv6 IPAM pool you want to use for allocating this VPC's CIDR. IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts. Conflict with
assignGeneratedIpv6CidrBlockandipv6Pool. - ipv6Netmask
Length Number - Netmask length of the IPv6 CIDR you want to allocate to this VPC. Requires specifying a
ipv6IpamPoolId. This parameter is optional if the IPAM pool hasallocationDefaultNetmaskset, otherwise it oripv6CidrBlockare required. Conflicts withipv6CidrBlock. - ipv6Pool String
- ID of an IPv6 address pool from which to allocate the IPv6 CIDR block. Conflicts with
assignGeneratedIpv6CidrBlockandipv6IpamPoolId. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- vpc
Id String - ID of the VPC to make the association with.
Import
or
or
Using pulumi import, import aws.ec2.VpcIpv6CidrBlockAssociation using the VPC CIDR association ID and optionally the IPv6 IPAM pool ID and netmask length. For example:
$ pulumi import aws:ec2/vpcIpv6CidrBlockAssociation:VpcIpv6CidrBlockAssociation example vpc-cidr-assoc-0754129087e149dcd
or
$ pulumi import aws:ec2/vpcIpv6CidrBlockAssociation:VpcIpv6CidrBlockAssociation example vpc-cidr-assoc-0754129087e149dcd,ipam-pool-0611d1d6bbc05ce60
or
$ pulumi import aws:ec2/vpcIpv6CidrBlockAssociation:VpcIpv6CidrBlockAssociation example vpc-cidr-assoc-0754129087e149dcd,ipam-pool-0611d1d6bbc05ce60,56
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Thursday, Oct 8, 2026 by Pulumi