Closed nothere517 closed 1 month ago
Voting for Prioritization
Volunteering to Work on This Issue
[!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.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'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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
I am unsure if this needs to be an enhancement or a bug so apologies in advance if enhancement is the wrong label.
AWS recently announced the ability to request Amazon-provided contiguous IPv4 blocks via their IPAM service. This allows you to request a public IP CIDR block and then allocate those to Elastic IP's to then be used for EC2 resources. I was able to follow their guide and create the resources via Terraform. I was able to create an IPAM, create a public IP pool provided by Amazon, and create a continuous CIDR block of IP's. The issue occurs when I try to create an EIP (elastic IP) resource specifying use of that pool. I included AWS links on how to do this via AWS CLI in the references section. It looks like there is a new property called "ipam-pool-id" which is not the same as "public_ipv_4_pool".
There seems to be a new property called ipam-pool-id which is not a current option in the aws_eip resource.
This is availabe in AWS CLI specifying the IPAM pool ID.
aws ec2 allocate-address --region us-east-1 --ipam-pool-id ipam-pool-{unique_aws_resource_value}
Terraform code sample to create the IPAM pool:
The current resource property "public_ipv4_pool" not the same as the CLI property "ipam-pool-id"
Affected Resource(s) and/or Data Source(s)
Potential Terraform Configuration
References
https://aws.amazon.com/about-aws/whats-new/2024/08/amazon-provided-contiguous-ipv4-blocks/
https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-eip-pool.html
Would you like to implement a fix?
None