Files
floci/src/main/java
Hector Ventura a13a221a88 fix(ec2): Volume throughput, DescribeAddressesAttribute, and IAM instance profile parity (#1103)
* fix(ec2): add Volume throughput, DescribeAddressesAttribute, and IAM instance profile parity

Three EC2 read-path gaps broke Terraform/OpenTofu apply cycles:

throughput to the Volume model, parsed it in CreateVolume, and emitted it
in CreateVolume/DescribeVolumes. gp3 defaults to 125 MiB/s (matching AWS);
other volume types leave it null.

the VPC module's aws_eip read cycle. Implemented the operation (returns
allocationId + publicIp per AddressAttribute) and added it to the EC2
action allowlist.

instance was launched with one, and DescribeIamInstanceProfileAssociations
returned UnsupportedOperation — causing perpetual Terraform drift then a
hard failure. instanceXml now emits <iamInstanceProfile> (arn + id), and
DescribeIamInstanceProfileAssociations is implemented with instance-id
filter and AssociationId lookup. Profile and association ids are derived
deterministically from the instance id so repeated describes are stable.

Verified against AWS SDK v2 shapes (Volume.Throughput,
AddressAttribute, IamInstanceProfileAssociation).

* fix: incorrect exception throw
2026-05-31 00:44:53 -05:00
..