The personal blog of Scott Beru
18 March 2023
It’s been a while since I posted anything, so I thought I might mention one of the minor public (FOSS) projects I’ve pushed recently: the IPv4 BYOIP pool(s) data source for the AWS Terraform provider.
My current organization has some really interesting requirements:
Given existing Terraform AWS provider code, we had to create a separate terraform file for each BYOIP/IPAM pool, because we had no way to reference either a) all of our various IPAM pools, or b) any one of them.
For this reason, I created a module that accesses an existing API endpoint in the AWS SDK to provide either a single BYOIP pool or (conceivably) all BYOIP pools connected with a particular account. Though the API endpoint has existed for a little while now, it was not exposed to Terraform previously, so I added:
This was really fun to work on, and I hope it makes life easier for someone else out there!