<p>As the error states:</p>
<blockquote>
<p>&quot;ipv6_cidr_block&quot;: all of <code>ipv6_cidr_block,ipv6_ipam_pool_id</code> must be specified</p>
</blockquote>
<p>Both <code>ipv6_cidr_block</code> and <code>ipv6_ipam_pool_id</code> must be <em>specified</em>. This doesn't necessarily mean they need to have a value, so in your case, you should be fine to just leave it empty:</p>
<pre><code>ipv6_cidr_block   = &quot;2600:0c00:eaa:a$$$::/56&quot;
ipv6_ipam_pool_id = &quot;&quot;
</code></pre>

CC BY-SA 4.0
2024-02-01T07:02:35.100Z
I know it is late, but etiquette dictates that I must say **"thank you"** despite the time. Thanks and have a great year.
metacogni
CC BY-SA 4.0
2022-11-15T01:16:50.220Z
2022-11-15T01:16:50.220Z
Oldskool
<p><strong>Usage</strong>: import</p>
<p><strong>Version</strong>:
Terraform v1.1.9</p>
<ul>
<li>provider registry.terraform.io/hashicorp/aws v4.11.0</li>
</ul>
<p>I've something like this defined:</p>
<pre><code>  assign_generated_ipv6_cidr_block = &quot;true&quot;
  cidr_block                       = &quot;10.0.0.0/16&quot;
  enable_dns_hostnames             = &quot;true&quot;
  enable_dns_support               = &quot;true&quot;
  instance_tenancy                 = &quot;default&quot;
  ipv6_cidr_block                      = &quot;2600:0c00:eaa:a$$$::/56&quot;
  ipv6_cidr_block_network_border_group = &quot;$region&quot;
  # ipv6_netmask_length                  = &quot;56&quot;
</code></pre>
<p>But keep getting:</p>
<pre><code>╷
│ Error: Missing required argument
│ 
│   with aws_vpc.$vpc_Name,
│   on main.tf line 7, in resource &quot;aws_vpc&quot; &quot;$vpc_Name&quot;:
│    7:   ipv6_cidr_block                      = &quot;2600:0c00:eaa:a$$$::/56&quot;
│ 
│ &quot;ipv6_cidr_block&quot;: all of `ipv6_cidr_block,ipv6_ipam_pool_id` must be specified
</code></pre>
<p>I've seen this:</p>
<p><strong>ipv6_cidr_block</strong> - can be set explicitly or derived from IPAM using ipv6_netmask_length.</p>
<p><strong>ipv6_ipam_pool_id</strong> - conflicts with assign_generated_ipv6_cidr_block.</p>
<p><strong>ipv6_netmask_length</strong> - conflicts with ipv6_cidr_block. This can be omitted if IPAM pool as a allocation_default_netmask_length set.</p>
<p>IPAM is not defined for the account:</p>
<pre><code>aws ec2 describe-ipam-pools
- IpamPools: []
</code></pre>
<p>And this happens whether &quot;ipv6_netmask_length&quot; is set or not.</p>
<p>Please, what am I doing wrong and how do I set it right?</p>
<p>Thanks for the help.</p>

<terraform>
"ipv6_cidr_block": all of `ipv6_cidr_block,ipv6_ipam_pool_id` must be specified
metacogni
# "ipv6_cidr_block": all of `ipv6_cidr_block,ipv6_ipam_pool_id` must be specified

(Asked by: username_0 on 2022-04-29)

Usage: import
Version:
Terraform v1.1.9

provider registry.terraform.io/hashicorp/aws v4.11.0

I've something like this defined:
  assign_generated_ipv6_cidr_block = "true"
  cidr_block                       = "10.0.0.0/16"
  enable_dns_hostnames             = "true"
  enable_dns_support               = "true"
  instance_tenancy                 = "default"
  ipv6_cidr_block                      = "2600:0c00:eaa:a$$$::/56"
  ipv6_cidr_block_network_border_group = "$region"
  # ipv6_netmask_length                  = "56"

But keep getting:
╷
│ Error: Missing required argument
│ 
│   with aws_vpc.$vpc_Name,
│   on main.tf line 7, in resource "aws_vpc" "$vpc_Name":
│    7:   ipv6_cidr_block                      = "2600:0c00:eaa:a$$$::/56"
│ 
│ "ipv6_cidr_block": all of `ipv6_cidr_block,ipv6_ipam_pool_id` must be specified

I've seen this:
ipv6_cidr_block - can be set explicitly or derived from IPAM using ipv6_netmask_length.
ipv6_ipam_pool_id - conflicts with assign_generated_ipv6_cidr_block.
ipv6_netmask_length - conflicts with ipv6_cidr_block. This can be omitted if IPAM pool as a allocation_default_netmask_length set.
IPAM is not defined for the account:
aws ec2 describe-ipam-pools
- IpamPools: []

And this happens whether "ipv6_netmask_length" is set or not.
Please, what am I doing wrong and how do I set it right?
Thanks for the help.

**Tags:** terraform


---

## 1 answers

### Answer by username_1 on 2022-11-15. Score: 2

As the error states:

"ipv6_cidr_block": all of ipv6_cidr_block,ipv6_ipam_pool_id must be specified

Both ipv6_cidr_block and ipv6_ipam_pool_id must be specified. This doesn't necessarily mean they need to have a value, so in your case, you should be fine to just leave it empty:
ipv6_cidr_block   = "2600:0c00:eaa:a$$$::/56"
ipv6_ipam_pool_id = ""

> **Comments:**
> **username_0**: I know it is late, but etiquette dictates that I must say **"thank you"** despite the time. Thanks and have a great year.  

---

