-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: IPAM - The request can only contain PubliclyAdvertisable if the AddressFamily is IPv6 and PublicIpSource is byoip. #39967
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Relates #39600 |
I have repro'd this and working on a fix. |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.75.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'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
1.9.8
AWS Provider Version
5.72.x
Affected Resource(s)
aws_vpc_ipam_pool
Expected Behavior
with following parameters:
public_ip_source = amazon
ip_scope_type = public
address_family = ipv6
aws_service = ec2
"publicly_advertisable" parameter should not be passed in this case
I expect to be able to create an IPAM pool that allocates an AWS generated CIDR block.
Actual Behavior
publicly_advertisable parameter is passed, doesn't matter which value it has.
you get the error 'The request can only contain PubliclyAdvertisable if the AddressFamily is IPv6 and PublicIpSource is byoip.'
seems like the wrong checks are done here:
terraform-provider-aws/internal/service/ec2/ipam_pool.go
Line 207 in ce1c31d
a check should be done on PublicIpSource instead of IpamScopeType?
Relevant Error/Panic Output Snippet
Error: creating IPAM Pool: operation error EC2: CreateIpamPool, https response error StatusCode: 400, RequestID: blabla, api error InvalidParameterCombination: The request can only contain PubliclyAdvertisable if the AddressFamily is IPv6 and PublicIpSource is byoip.
Terraform Configuration Files
Steps to Reproduce
run this code with the AWS provider on ~> 5.0 and with provider version 5.56.1 for example (I used this version because it was in my local .terraform providers and I knew at some point my configuration worked)
Debug Output
#failing request: it has PubliclyAdvertisable passed.
#working request (provider 5.56.1): PubliclyAdvertisable is not passed, however in my TF configuration I didn't change anything
Panic Output
No response
Important Factoids
you probably need to decrease the CIDR sizes in order to run this, I had my quote increased by AWS. (default limit is /52)
References
Caused by #39600
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: