-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r/aws_vpc_ipam_pool: set publicly_advertisable only if public_ip_source = byoip and address_family = ipv6 #39600
r/aws_vpc_ipam_pool: set publicly_advertisable only if public_ip_source = byoip and address_family = ipv6 #39600
Conversation
… and address_family = ipv6
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome @NamanJain8 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
…ess_attribute` attributes.
…ubliclyAdvertisable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccIPAM_' PKG=ec2 ACCTEST_PARALLELISM=2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/ec2/... -v -count 1 -parallel 2 -run=TestAccIPAM_ -timeout 360m
=== RUN TestAccIPAM_byoipIPv6
ipam_byoip_test.go:26: Environment variable IPAM_BYOIP_IPV6_MESSAGE, IPAM_BYOIP_IPV6_SIGNATURE, or IPAM_BYOIP_IPV6_PROVISIONED_CIDR is not set
--- SKIP: TestAccIPAM_byoipIPv6 (0.00s)
=== RUN TestAccIPAM_basic
=== PAUSE TestAccIPAM_basic
=== RUN TestAccIPAM_disappears
=== PAUSE TestAccIPAM_disappears
=== RUN TestAccIPAM_description
=== PAUSE TestAccIPAM_description
=== RUN TestAccIPAM_operatingRegions
=== PAUSE TestAccIPAM_operatingRegions
=== RUN TestAccIPAM_cascade
=== PAUSE TestAccIPAM_cascade
=== RUN TestAccIPAM_tier
=== PAUSE TestAccIPAM_tier
=== RUN TestAccIPAM_tags
=== PAUSE TestAccIPAM_tags
=== RUN TestAccIPAM_enablePrivateGUA
=== PAUSE TestAccIPAM_enablePrivateGUA
=== CONT TestAccIPAM_basic
=== CONT TestAccIPAM_cascade
--- PASS: TestAccIPAM_basic (26.55s)
=== CONT TestAccIPAM_description
--- PASS: TestAccIPAM_cascade (48.29s)
=== CONT TestAccIPAM_operatingRegions
--- PASS: TestAccIPAM_description (40.14s)
=== CONT TestAccIPAM_tags
--- PASS: TestAccIPAM_tags (40.21s)
=== CONT TestAccIPAM_enablePrivateGUA
--- PASS: TestAccIPAM_operatingRegions (67.86s)
=== CONT TestAccIPAM_tier
--- PASS: TestAccIPAM_enablePrivateGUA (39.14s)
=== CONT TestAccIPAM_disappears
--- PASS: TestAccIPAM_disappears (29.16s)
--- PASS: TestAccIPAM_tier (60.32s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 182.059s
% make testacc TESTARGS='-run=TestAccVPCIPv6CIDRBlockAssociation_basic' PKG=ec2 ACCTEST_PARALLELISM=2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/ec2/... -v -count 1 -parallel 2 -run=TestAccVPCIPv6CIDRBlockAssociation_basic -timeout 360m
=== RUN TestAccVPCIPv6CIDRBlockAssociation_basic
=== PAUSE TestAccVPCIPv6CIDRBlockAssociation_basic
=== CONT TestAccVPCIPv6CIDRBlockAssociation_basic
--- PASS: TestAccVPCIPv6CIDRBlockAssociation_basic (51.79s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 57.659s
% make testacc TESTARGS='-run=TestAccIPAMPool_' PKG=ec2 ACCTEST_PARALLELISM=2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/ec2/... -v -count 1 -parallel 2 -run=TestAccIPAMPool_ -timeout 360m
=== RUN TestAccIPAMPool_basic
=== PAUSE TestAccIPAMPool_basic
=== RUN TestAccIPAMPool_disappears
=== PAUSE TestAccIPAMPool_disappears
=== RUN TestAccIPAMPool_ipv6Basic
=== PAUSE TestAccIPAMPool_ipv6Basic
=== RUN TestAccIPAMPool_ipv6Contiguous
=== PAUSE TestAccIPAMPool_ipv6Contiguous
=== RUN TestAccIPAMPool_cascade
=== PAUSE TestAccIPAMPool_cascade
=== RUN TestAccIPAMPool_tags
=== PAUSE TestAccIPAMPool_tags
=== RUN TestAccIPAMPool_ipv6PrivateScope
=== PAUSE TestAccIPAMPool_ipv6PrivateScope
=== CONT TestAccIPAMPool_basic
=== CONT TestAccIPAMPool_cascade
--- PASS: TestAccIPAMPool_basic (54.02s)
=== CONT TestAccIPAMPool_ipv6PrivateScope
--- PASS: TestAccIPAMPool_cascade (63.44s)
=== CONT TestAccIPAMPool_tags
--- PASS: TestAccIPAMPool_ipv6PrivateScope (67.75s)
=== CONT TestAccIPAMPool_ipv6Basic
--- PASS: TestAccIPAMPool_tags (60.20s)
=== CONT TestAccIPAMPool_ipv6Contiguous
--- PASS: TestAccIPAMPool_ipv6Contiguous (60.37s)
=== CONT TestAccIPAMPool_disappears
--- PASS: TestAccIPAMPool_ipv6Basic (62.78s)
--- PASS: TestAccIPAMPool_disappears (57.45s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 245.866s
@NamanJain8 Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.72.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I believe this broke the functionality to be able to make an ipv6 ipam pool when the source is set to "amazon". In 5.70, I am able to do so, but I can no longer do so in 5.72. It looks like the publicly_advertisable attribute is always being sent to aws for anything ipv6 and aws rejects the command when the source is amazon. It also appears that none of the test cases check that scenario which is probably why it was not caught? |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Issue:
The following terraform snippet fails to create a pool in private scope in IPAM.
main.tf
Error:
Verified the same by writing a simple go program to create IPAM pool using AWS SDK.
Go Code
This fails when
PubliclyAdvertisable: aws.Bool(false),
is uncommented.Closes #38805.
Closes #38838.