Resource: aws_vpc_ipv6_cidr_block_association

Provides a resource to associate additional IPv6 CIDR blocks with a VPC.

The aws_vpc_ipv6_cidr_block_association resource allows IPv6 CIDR blocks to be added to the VPC.

Example Usage

resource "aws_vpc" "test" {
  cidr_block = "10.0.0.0/16"
}

resource "aws_vpc_ipv6_cidr_block_association" "test" {
  ipv6_ipam_pool_id = aws_vpc_ipam_pool.test.id
  vpc_id            = aws_vpc.test.id
}

Argument Reference

This resource supports the following arguments:

Timeouts

Configuration options:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import aws_vpc_ipv6_cidr_block_association using the VPC CIDR Association ID. For example:

import {
  to = aws_vpc_ipv6_cidr_block_association.example
  id = "vpc-cidr-assoc-xxxxxxxx"
}

Using terraform import, import aws_vpc_ipv6_cidr_block_association using the VPC CIDR Association ID. For example:

% terraform import aws_vpc_ipv6_cidr_block_association.example vpc-cidr-assoc-xxxxxxxx