Files
floci/src/test/java
Allen Sanborn 6172451e0b feat(ec2): support DescribeIpamScopes (#4843)
* feat(ec2): support DescribeIpamScopes

CreateIpam already creates the private and public default scopes, but
DescribeIpamScopes answered UnsupportedOperation. Terraform's
aws_vpc_ipam_pool reads its scope through DescribeIpamScopes before
CreateIpamPool, so no IPAM pool could be created.

Accepts IpamScopeId.N (and IpamScopeIds.member.N, as DescribeIpams does)
and returns InvalidIpamScopeId.NotFound for unknown ids. Filter.N is not
supported.

* fix(ec2): report scope and IPAM on IPAM pools

The IpamPool shape carries ipamScopeArn, ipamScopeType, ipamArn and
ipamRegion, but pools were written without them. Terraform's
aws_vpc_ipam_pool Read splits ipamScopeArn on "/" and reads
ipamScopeType off the pool, so every refresh of a pool broke.

They are derived from the pool's scope and its IPAM, and omitted when
that scope is no longer visible.

* fix(ec2): count IPAM pools per scope in one pass; import XmlPath in test

* refactor(ec2): resolve IPAM scope lookup and its not-found error in one place
2026-10-02 16:42:25 -04:00
..