Skip to content

feat: Cloud WAN VPC attachment options (v4.9.0) - #187

Merged
pablo19sc merged 2 commits into
aws-ia:mainfrom
clopca:release/v4.9
Aug 19, 2026
Merged

feat: Cloud WAN VPC attachment options (v4.9.0)#187
pablo19sc merged 2 commits into
aws-ia:mainfrom
clopca:release/v4.9

Conversation

@clopca

@clopca clopca commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Completes the remaining scope of #176: exposes the newer Cloud WAN VPC attachment arguments through the core_network subnet type.

Changes

  • New optional core_network subnet keys, wired to aws_networkmanager_vpc_attachment:
    • routing_policy_label (top-level attachment argument)
    • dns_support (options block)
    • security_group_referencing_support (options block)
  • Defaults are null — the provider defers to the AWS service defaults, so existing attachments see no diff on upgrade. (The options are Optional + Computed in the provider schema; passing an explicit false for dns_support would have flipped existing attachments, which AWS creates with true.)
  • Provider requirement bumped to >= 6.27.0routing_policy_label does not exist in the 5.x provider schema. This is the reason these options ship in a minor release (v4.9.0) rather than a patch: consumers pinned to provider 5.x need to upgrade their provider to adopt this module version.
  • cloud_wan example updated to demonstrate the new options (from Fixing IPv6 configuration in private subnets + Cloud WAN VPC attachment update #176).
  • Key-validation allowlist and variable documentation updated; READMEs regenerated with terraform-docs.

Testing

  • New offline regression suite tests/cloudwan_attachment_options.tftest.hcl (mock provider): option propagation to the attachment, and routing_policy_label defaulting to null when unset.
  • Existing enable_dns64 suite still green (5/5 total runs).
  • terraform fmt / terraform validate clean.
  • Not apply-tested against a live core network (Cloud WAN not available in our sandbox); the cloud_wan example CI test covers the apply path.

Supersedes the remaining scope of #176 — co-authored with @pablo19sc.

… SG referencing support)

Exposes three new optional keys on core_network subnets, wired to the
aws_networkmanager_vpc_attachment resource:

- routing_policy_label (top-level attachment argument)
- dns_support and security_group_referencing_support (options block)

Defaults are null so AWS keeps its own defaults and existing attachments
see no diff on upgrade. Provider requirement bumped to >= 6.27.0
(routing_policy_label is not present in the 5.x provider schema).

cloud_wan example updated to demonstrate the new options. Offline
regression tests added (option propagation + null defaults).

Supersedes the remaining scope of aws-ia#176.

Co-authored-by: Pablo Sanchez Carmona <pablo19sc@users.noreply.github.com>
@clopca
clopca marked this pull request as ready for review August 18, 2026 21:48
@clopca
clopca requested a review from a team as a code owner August 18, 2026 21:48
clopca pushed a commit to clopca/terraform-aws-vpc that referenced this pull request Aug 18, 2026
Adds routing_policy_label, dns_support and security_group_referencing
to core_network_options, wired to aws_networkmanager_vpc_attachment.
Defaults are null so the AWS service defaults apply and existing
attachments see no diff on upgrade. Ports the remaining v4.9.0 scope
(PR aws-ia#187) to v5; enable_dns64 and the NAT64 route were already present.

Co-authored-by: Pablo Sanchez Carmona <pablo19sc@users.noreply.github.com>

@pablo19sc pablo19sc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

g2g

@pablo19sc
pablo19sc merged commit c8db786 into aws-ia:main Aug 19, 2026
8 checks passed
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.

2 participants