fix(ec2): add missing subnet attributes and instance block device attachTime (#1087)

ModifySubnetAttribute only handled MapPublicIpOnLaunch; the other three
AWS-defined attributes — AssignIpv6AddressOnCreation, EnableDns64, and
MapCustomerOwnedIpOnLaunch — were silently ignored. Added them to the
handler loop and to the Subnet model, and included them in the
DescribeSubnets XML response alongside an empty ipv6CidrBlockAssociationSet
element that AWS always returns.

DescribeInstances was missing attachTime on blockDeviceMapping/ebs, causing
SDK response shape validation to fail for callers that inspect that field.
This commit is contained in:
Hector Ventura authored and GitHub committed 2026-05-29 18:52:46 -05:00
1 parent bd6ec2d5c6
commit b74b02da4f
5 files changed
+82 -7

No files matched your search

@@ -287,6 +287,22 @@ class Ec2IntegrationTest {
.body("DescribeSubnetsResponse.subnetSet.item.subnetId", equalTo(subnetId));
}
@Test
@Order(21)
void createSubnetHasAssignIpv6AddressOnCreation() {
given()
.formParam("Action", "DescribeSubnets")
.formParam("SubnetId.1", subnetId)
.header("Authorization", AUTH_HEADER)
.when()
.post("/")
.then()
.statusCode(200)
.body("DescribeSubnetsResponse.subnetSet.item.assignIpv6AddressOnCreation", equalTo("false"))
.body("DescribeSubnetsResponse.subnetSet.item.enableDns64", equalTo("false"))
.body("DescribeSubnetsResponse.subnetSet.item.mapCustomerOwnedIpOnLaunch", equalTo("false"));
}
@Test
@Order(22)
void modifySubnetAttribute() {