fix(ec2): honor CreateRoute DryRun before mutation (#7424)

* fix(ec2): honor CreateRoute DryRun before mutation

Check CreateRoute DryRun before resolving or writing routes. Cover valid and missing NAT targets, signed IAM allow and revocation, rejected signatures, unchanged routes and normal creation through the SDK.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* test: share AWS client key-pair configuration

Reuse AwsTestClients for caller credentials in EC2 DryRun and SSM ARN permission fixtures. Preserve explicit endpoints, signature rejection and authorization assertions.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
This commit is contained in:
Andre Kurait authored and GitHub committed 2026-11-03 12:24:50 -04:00
1 parent 50af3bb644
commit dddc0b85cb
4 files changed
+195 -12

No files matched your search

@@ -4232,6 +4232,7 @@ public class Ec2QueryHandler {
}
private Response handleCreateRoute(MultivaluedMap<String, String> p, String region) {
checkDryRun(p);
String rtId = p.getFirst("RouteTableId");
String dest = p.getFirst("DestinationCidrBlock");
String destIpv6 = p.getFirst("DestinationIpv6CidrBlock");