mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
* fix(rds): list Aurora engines in DescribeOrderableDBInstanceOptions DescribeOrderableDBInstanceOptions returned nothing for aurora-mysql or aurora-postgresql, so clients that pick an instance class from the orderable list could not create Aurora cluster instances. Add the default Aurora MySQL (8.0.mysql_aurora.3.05.2) and Aurora PostgreSQL (16.3) versions with db.t3.medium, db.t4g.medium, db.r5.large and db.r6g.large. * fix(ec2): honour block-device-mapping.volume-type in DescribeImages The filter fell through to the default case and matched every image. Registered images now match on any block device mapping's EBS volume type, mirroring block-device-mapping.snapshot-id. Catalog images model no block devices, so an optional rootVolumeType catalog field carries the type where the AMI name states it (gp2 for the Amazon Linux 2 image, gp3 for the hvm-ssd-gp3 Ubuntu images); images without it match no value. DescribeImages output is unchanged. * fix(rds): report general-public-license for aurora-mysql orderable options * fix(ec2): carry catalog root volume type into the image's EBS mapping * fix(ec2,rds): address review on catalog AMI mappings and Aurora default version - Catalog AMI root mappings no longer advertise an invented SnapshotId that DescribeSnapshots cannot resolve (EbsBlockDevice.SnapshotId is optional); a copy or capture still mints a real root snapshot. - RunInstances sizes the root volume type from the AMI's root mapping, falling back to gp3, so the gp2 catalog AMI launches a gp2 root. - aurora-mysql defaults to 8.0.mysql_aurora.3.05.2, the version DescribeOrderableDBInstanceOptions lists. * test(ec2): assert the volume-type filter, not a single gp2 volume Instances launched earlier in the class now get gp2 roots from the gp2 catalog AMI, so filtering on gp2 returns several volumes. Check every result is gp2 and the created volume is among them. * test(rds): read EngineVersion with XmlPath, import RequestSpecification * fix(ec2): honour a RunInstances root BlockDeviceMapping volume type A request BlockDeviceMapping naming the AMI's root device overrides the AMI's root VolumeType, as on AWS; previously the launch always took the AMI mapping, so a gp3 root on the gp2 Amazon Linux 2 AMI came out gp2. * test: explicit RequestSpecification type in Ec2IntegrationTest (NoVar checkstyle rule) * refactor(ec2): fold RunInstances BlockDeviceMappings into the placement overload Adds the mappings parameter to the existing hostId/tenancy overload instead of a new one, and updates the two callers that named that signature: Ec2RunInstancesPublicIpParamTest's stub/verify (whose unmatched stub returned null and NPE'd the handler) and the dedicated-host race test. * fix(ec2): apply launch template block device mappings and capture the real root type RunInstances and CreateFleet now layer the request's BlockDeviceMappings over the launch template's (a request entry for a device replaces the template's), so a template asking for a gp3 root is honoured instead of the AMI's gp2. CreateImage records the instance's actual root volume type on the new AMI's root mapping rather than the source AMI's. A mapping naming a VolumeType outside the model's enum (standard, io1, io2, gp2, sc1, st1, gp3) is rejected with the same InvalidParameterValue ModifyVolume returns, through one shared check. The RunInstances-only parser is gone: request mappings are read by the launch template parser, which already treats every member as optional. * test(rds): fold the Aurora default-version orderable check into RdsCatalogueReadIntegrationTest * fix(autoscaling): launch group instances with the template's block device mappings Auto Scaling scale-out now hands the launch template's BlockDeviceMappings to runInstances, as RunInstances and CreateFleet do, so a group launched from a template that asks for a gp3 root gets a gp3 root instead of the AMI's type. Mixed-instances templates take the same path; launch configurations pass none. * test(ec2): template devices the request does not name still apply Covers a launch whose request maps only a data device: the template's root mapping still sets the root volume type. Also covers a template naming an unknown VolumeType, which CreateLaunchTemplate stores and the launch rejects; the EC2 docs paragraph now says so and is rewrapped to the file's width. * fix(ec2): merge launch template block device mappings field by field EC2 documents template block device overrides per member: a request entry for a DeviceName the template maps changes only what it sets, and every other member keeps the template's value. The merge replaced the whole entry, so a request that only resized the root dropped a template's gp3. The merged entry is now built from a copy of the template's, overlaid member by member, leaving the stored template untouched.