Closed kverstr closed 1 week ago
Voting for Prioritization
Volunteering to Work on This Issue
Relates #39600
Yeah, I guess that is the change that broke this.
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!
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: https://github.com/hashicorp/terraform-provider-aws/blob/ce1c31d9c90de12d93279b1bcaa6da9e2ae5b592/internal/service/ec2/ipam_pool.go#L207
a check should be done on PublicIpSource instead of IpamScopeType?
Relevant Error/Panic Output Snippet
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