Skip to content

fix: Allow IPv6 IPAM pool without requiring IPv4 IPAM#1293

Open
owen-method wants to merge 1 commit intoterraform-aws-modules:masterfrom
owen-method:fix/ipv6-ipam-without-ipv4-ipam
Open

fix: Allow IPv6 IPAM pool without requiring IPv4 IPAM#1293
owen-method wants to merge 1 commit intoterraform-aws-modules:masterfrom
owen-method:fix/ipv6-ipam-without-ipv4-ipam

Conversation

@owen-method
Copy link
Copy Markdown

Description

Allow IPv6 IPAM pool to be used without requiring an IPv4 IPAM pool.

Motivation and Context

When use_ipam_pool = true but only an IPv6 IPAM pool is configured (no ipv4_ipam_pool_id), two bugs occurred:

  • cidr_block was set to null, breaking IPv4 CIDR assignment
  • assign_generated_ipv6_cidr_block was omitted, breaking AWS-generated IPv6 CIDR assignment

Fixes #1282

Breaking Changes

None. This is a bug fix that only affects configurations using use_ipam_pool = true with IPv6 IPAM but no IPv4 IPAM pool, a combination that was previously broken.

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

The examples/ipam/ example already has IPv6 IPAM infrastructure present but commented out due to BYOIP requirements. The fix applies to the logic in main.tf and was manually validated in a live environment.

@owen-method owen-method changed the title fix: allow IPv6 IPAM pool without requiring IPv4 IPAM fix: Allow IPv6 IPAM pool without requiring IPv4 IPAM Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VPC module incompatible with IPv4 cidr_block and IPv6 IPAM pool

1 participant