Light, fluffy, and always free - The AWS Local Emulator alternative
fix(dsql): enforce IAM and the cluster's policy on the control plane (#6328)
Alessandro Lattao3944d6edc277
diff --git a/docs/services/dsql.md b/docs/services/dsql.mdindex 2f99370fac..06286793f8 100644--- a/docs/services/dsql.md+++ b/docs/services/dsql.md@@ -190,8 +190,10 @@ it with DSQL's messages:The policy is kept and returned in DSQL's form: pretty-printed, its elements in DSQL's order, alist of one value written as that value, condition values as text, an account id as its root ARN,and `2008-10-17` when it has no `Version`. A policy's version is the time it was set, in epoch-milliseconds. With IAM enforcement on, a connection is checked against the cluster's policy (see-[Authentication](#authentication)); control plane calls are not.+milliseconds. With IAM enforcement on, the cluster's policy is evaluated for every control plane+call on the cluster, as DSQL evaluates it, and when a client connects (see+[Authentication](#authentication)). Each control plane call is checked against the cluster it names,+and `CreateCluster` and `ListClusters` against `cluster/*`.## CloudFormationdiff --git a/docs/services/iam.md b/docs/services/iam.mdindex 7babd282fe..63ca7a73be 100644--- a/docs/services/iam.md+++ b/docs/services/iam.md@@ -1339,7 +1339,7 @@ as, and its path is matched still percent-encoded, as the router matches it, soinside a parameter cannot make the route's rule miss.The REST routes mapped to an action are those of S3, Lambda, API Gateway, SES v2, RDS Data,-Kinesis, EventBridge Scheduler and EventBridge Pipes. In Lambda that is every route of the function+Kinesis, EventBridge Scheduler, EventBridge Pipes and Aurora DSQL. In Lambda that is every route of the functionAPI, MicroVMs and network connectors, including those Floci does not serve yet, and the WebFunctions routes, each checked as the action of its own name except `InvokeWithResponseStream`(checked as `lambda:InvokeFunction`) and `GetLayerVersionByArn` (`lambda:GetLayerVersion`). AWS also@@ -1353,7 +1353,9 @@ names, are not served.A Scheduler request is checked against `schedule/<group>/<name>`, the group from the body's`GroupName` on a create or an update, from `groupName` otherwise, and `default` when neither names-one, or `schedule-group/<name>`. A Pipes request is checked against `pipe/<name>`. A MicroVM image+one, or `schedule-group/<name>`. A Pipes request is checked against `pipe/<name>`. A DSQL request+is checked against `cluster/<id>`, `cluster/<id>/stream/<id>` for a stream, or the ARN a tagging+route names; `CreateCluster` and `ListClusters` against `cluster/*`, as DSQL checks them. A MicroVM imageor network connector request is checked against `microvm-image:<name>` or `network-connector:<id>`in the request's account and Region, an identifier given as an ARN taken for its name, as theservice looks it up. `RunMicrovm` is checked against the image its `imageIdentifier` names, an@@ -1555,6 +1557,7 @@ When `FLOCI_SERVICES_IAM_ENFORCEMENT_ENABLED` is active, Floci also queries regi- For detailed S3 bucket policy behavior and configuration, see [S3 Bucket Policy Enforcement](s3.md#bucket-policy-enforcement).- Lambda function policies, the statements `AddPermission` adds, take part the same way. An invoke of another account's function by ARN runs it in that account, so its function policy has to allow the caller as well; see [Function policies under IAM enforcement](lambda.md#function-policies-under-iam-enforcement).- SNS topic policies take part the same way for a request that names the topic in a JSON-protocol body; a topic with no policy set has the default one AWS gives a new topic. See [SNS](sns.md).+- Aurora DSQL cluster policies take part the same way for a control plane call on the cluster, and when a client connects to the cluster's endpoint. See [DSQL](dsql.md#authentication).- SQS queue and API Gateway REST API policies are stored but not evaluated.- A call an AWS service makes to another service's resource on its own behalf, such as SES publishing an event or a notification to an SNS topic, has no IAM principal, so the target's resource policy decides it alone and has to allow the calling service, through `{"Service": "<service>.amazonaws.com"}` or `{"AWS": "*"}`. A target with no policy refuses it. Its request context holds `aws:PrincipalIsAWSService` (`true`), `aws:PrincipalServiceName` and `aws:PrincipalServiceNamesList`, `aws:SourceArn` and `aws:SourceAccount` for the resource whose configuration triggered the call, `aws:ResourceAccount` and `aws:RequestedRegion`, and none of the keys that describe an IAM principal. A publish to an SNS topic from SES also carries `aws:SourceOwner`, the key the SNS Developer Guide lists SES among the services setting, which is what the default topic policy checks, so that policy admits SES acting for the topic owner's account and no other. SES is the one service checked this way so far; see [SES IAM enforcement](ses.md#iam-enforcement).diff --git a/src/main/java/io/github/hectorvent/floci/core/common/IamEnforcementFilter.java b/src/main/java/io/github/hectorvent/floci/core/common/IamEnforcementFilter.javaindex 18f001907f..dc86e06493 100644--- a/src/main/java/io/github/hectorvent/floci/core/common/IamEnforcementFilter.java+++ b/src/main/java/io/github/hectorvent/floci/core/common/IamEnforcementFilter.java@@ -1516,7 +1516,7 @@ public class IamEnforcementFilter implements ContainerRequestFilter {if ("secretsmanager".equals(credentialScope)) {return arnBuilder.buildSecretsManagerResources(action, ctx, region, accountId, requestPartition());}- if ("scheduler".equals(credentialScope) || "pipes".equals(credentialScope)) {+ if ("scheduler".equals(credentialScope) || "pipes".equals(credentialScope) || "dsql".equals(credentialScope)) {return arnBuilder.buildResources(credentialScope, ctx, region, accountId, requestPartition());}return arnBuilder.buildResources(credentialScope, ctx, region, accountId);diff --git a/src/main/java/io/github/hectorvent/floci/services/iam/IamActionRegistry.java b/src/main/java/io/github/hectorvent/floci/services/iam/IamActionRegistry.javaindex 4a339757b9..2602da4231 100644--- a/src/main/java/io/github/hectorvent/floci/services/iam/IamActionRegistry.java+++ b/src/main/java/io/github/hectorvent/floci/services/iam/IamActionRegistry.java@@ -256,6 +256,25 @@ public class IamActionRegistry {rule("scheduler", "POST", "^/tags(/.+)?$", "scheduler:TagResource"),rule("scheduler", "DELETE", "^/tags(/.+)?$", "scheduler:UntagResource"),+ // ── Aurora DSQL ────────────────────────────────────────────────────────+ rule("dsql", "POST", "^/cluster$", "dsql:CreateCluster"),+ rule("dsql", "GET", "^/cluster$", "dsql:ListClusters"),+ rule("dsql", "GET", "^/cluster/[^/]+$", "dsql:GetCluster"),+ rule("dsql", "POST", "^/cluster/[^/]+$", "dsql:UpdateCluster"),+ rule("dsql", "DELETE", "^/cluster/[^/]+$", "dsql:DeleteCluster"),+ rule("dsql", "POST", "^/cluster/[^/]+/policy$", "dsql:PutClusterPolicy"),+ rule("dsql", "GET", "^/cluster/[^/]+/policy$", "dsql:GetClusterPolicy"),+ rule("dsql", "DELETE", "^/cluster/[^/]+/policy$", "dsql:DeleteClusterPolicy"),+ rule("dsql", "GET", "^/clusters/[^/]+/vpc-endpoint-service-name$", "dsql:GetVpcEndpointServiceName"),+ rule("dsql", "POST", "^/stream/[^/]+$", "dsql:CreateStream"),+ rule("dsql", "GET", "^/stream/[^/]+$", "dsql:ListStreams"),+ rule("dsql", "GET", "^/stream/[^/]+/[^/]+$", "dsql:GetStream"),+ rule("dsql", "DELETE", "^/stream/[^/]+/[^/]+$", "dsql:DeleteStream"),+ // Tagging is served at /tags/<arn> and at /tags, naming the ARN in the query or the body.+ rule("dsql", "GET", "^/tags(/.+)?$", "dsql:ListTagsForResource"),+ rule("dsql", "POST", "^/tags(/.+)?$", "dsql:TagResource"),+ rule("dsql", "DELETE", "^/tags(/.+)?$", "dsql:UntagResource"),+// ── EventBridge Pipes ──────────────────────────────────────────────────rule("pipes", "POST", "^/v1/pipes/[^/]+/start$", "pipes:StartPipe"),rule("pipes", "POST", "^/v1/pipes/[^/]+/stop$", "pipes:StopPipe"),diff --git a/src/main/java/io/github/hectorvent/floci/services/iam/ResourceArnBuilder.java b/src/main/java/io/github/hectorvent/floci/services/iam/ResourceArnBuilder.javaindex 825cff0bda..e12b7c9056 100644--- a/src/main/java/io/github/hectorvent/floci/services/iam/ResourceArnBuilder.java+++ b/src/main/java/io/github/hectorvent/floci/services/iam/ResourceArnBuilder.java@@ -107,9 +107,9 @@ public class ResourceArnBuilder {}/**- * The resources a request is checked against. Scheduler and Pipes ARNs are minted in {@code partition},- * the request's, as those services mint theirs, so a Region no partition publishes gets the deployment's- * partition rather than {@code aws}.+ * The resources a request is checked against. Scheduler, Pipes and DSQL ARNs are minted in+ * {@code partition}, the request's, as those services mint theirs, so a Region no partition publishes gets+ * the deployment's partition rather than {@code aws}.*/public List<String> buildResources(String credentialScope, ContainerRequestContext ctx,String region, String accountId, String partition) {@@ -130,6 +130,7 @@ public class ResourceArnBuilder {case "resource-groups" -> List.of(buildResourceGroupArn(ctx, region, accountId));case "scheduler" -> List.of(buildSchedulerArn(path, ctx, region, accountId, partition));case "pipes" -> List.of(buildPipesArn(path, ctx, region, accountId, partition));+ case "dsql" -> List.of(buildDsqlArn(path, ctx, region, accountId, partition));default -> List.of("*");};}@@ -984,6 +985,29 @@ public class ResourceArnBuilder {return taggedResource(ctx);}+ /**+ * The resource of an Aurora DSQL route, as the Service Authorization Reference names it: the cluster+ * a cluster route names, the stream a stream route names (its cluster, to create or list streams), or+ * the ARN a tagging route names. CreateCluster and ListClusters are checked against+ * {@code cluster/*}, as DSQL checks them (measured).+ */+ private String buildDsqlArn(String path, ContainerRequestContext ctx, String region, String accountId,+ String partition) {+ String cluster = "/cluster".equals(path) ? "*" : segmentAfterPrefix(path, "/cluster/");+ if (cluster == null) {+ cluster = segmentAfterPrefix(path, "/clusters/");+ }+ String streamCluster = segmentAfterPrefix(path, "/stream/");+ if (streamCluster != null) {+ String stream = segmentAfterPrefix(path, "/stream/" + streamCluster + "/");+ cluster = stream == null ? streamCluster : streamCluster + "/stream/" + stream;+ }+ if (cluster != null) {+ return new AwsArnUtils.Arn(partition, "dsql", region, accountId, "cluster/" + cluster).toString();+ }+ return taggedResource(ctx);+ }+/** The resource of an EventBridge Pipes route: {@code pipe/<name>}, or the ARN a tagging route names. */private String buildPipesArn(String path, ContainerRequestContext ctx, String region, String accountId,String partition) {diff --git a/src/test/java/io/github/hectorvent/floci/services/dsql/DsqlClusterFixture.java b/src/test/java/io/github/hectorvent/floci/services/dsql/DsqlClusterFixture.javaindex ba2389a241..61abe854e3 100644--- a/src/test/java/io/github/hectorvent/floci/services/dsql/DsqlClusterFixture.java+++ b/src/test/java/io/github/hectorvent/floci/services/dsql/DsqlClusterFixture.java@@ -67,6 +67,10 @@ public final class DsqlClusterFixture {return host;}+ public String identifier() {+ return identifier;+ }+public String arn() {return "arn:aws:dsql:" + REGION + ":" + ACCOUNT + ":cluster/" + identifier;}diff --git a/src/test/java/io/github/hectorvent/floci/services/dsql/DsqlClusterPolicyIntegrationTest.java b/src/test/java/io/github/hectorvent/floci/services/dsql/DsqlClusterPolicyIntegrationTest.javaindex 4cacfd04be..8b576886eb 100644--- a/src/test/java/io/github/hectorvent/floci/services/dsql/DsqlClusterPolicyIntegrationTest.java+++ b/src/test/java/io/github/hectorvent/floci/services/dsql/DsqlClusterPolicyIntegrationTest.java@@ -6,6 +6,7 @@ import io.github.hectorvent.floci.testing.EnforcementFixtures;import io.github.hectorvent.floci.testing.PartitionCleanup;import io.quarkus.test.junit.QuarkusTest;import io.quarkus.test.junit.TestProfile;+import io.restassured.specification.RequestSpecification;import jakarta.inject.Inject;import org.eclipse.microprofile.config.inject.ConfigProperty;import org.junit.jupiter.api.AfterAll;@@ -17,20 +18,26 @@ import org.junit.jupiter.api.TestInstance;import org.junit.jupiter.api.extension.RegisterExtension;import org.postgresql.util.PSQLException;+import java.net.URLEncoder;+import java.nio.charset.StandardCharsets;import java.sql.Connection;import java.sql.ResultSet;import java.sql.Statement;import java.time.Instant;+import java.util.Map;+import static io.restassured.RestAssured.given;+import static org.hamcrest.Matchers.equalTo;import static org.junit.jupiter.api.Assertions.assertEquals;import static org.junit.jupiter.api.Assertions.assertThrows;import static org.junit.jupiter.api.Assertions.assertTrue;/**- * A cluster's resource-based policy on connect, with IAM enforcement on, as Aurora DSQL evaluates it- * (measured, eu-west-1, 2026-10-22): an explicit Deny that applies to the caller refuses the- * connection, with a hint naming the caller, the action and the cluster, under the conditions the- * statement sets; a statement that does not apply leaves the decision to the caller's own policies.+ * A cluster's resource-based policy, with IAM enforcement on, as Aurora DSQL evaluates it (measured,+ * eu-west-1, 2026-10-22 and 23): an explicit Deny that applies to the caller refuses the connection,+ * with a hint naming the caller, the action and the cluster, under the conditions the statement sets,+ * and refuses the control plane calls on the cluster it names; a statement that does not apply leaves+ * the decision to the caller's own policies.*/@QuarkusTest@TestProfile(DsqlEnforcementProfile.class)@@ -118,6 +125,67 @@ class DsqlClusterPolicyIntegrationTest {}}+ @Test+ void anExplicitDenyRefusesTheControlPlaneCallsOnTheClusterItNames() {+ String userName = "dsql-" + Long.toString(System.nanoTime(), 36);+ String authorization = EnforcementFixtures.auth(ACCOUNT, "iam");+ EnforcementFixtures.UserCredentials user = EnforcementFixtures.createUser(cleanup, httpPort, authorization,+ userName);+ EnforcementFixtures.putUserPolicy(httpPort, authorization, userName, "manage", """+ {"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"dsql:*","Resource":"*"}]}""");+ String clusterPath = "/cluster/" + cluster.identifier();+ String tagsPath = "/tags/" + URLEncoder.encode(cluster.arn(), StandardCharsets.UTF_8);+ String vpcEndpointPath = "/clusters/" + cluster.identifier() + "/vpc-endpoint-service-name";+ as(user).get(clusterPath).then().statusCode(200);++ cluster.putPolicy("{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Deny\",\"Principal\":{\"AWS\":"+ + "\"arn:aws:iam::" + ACCOUNT + ":root\"},\"Action\":[\"dsql:GetCluster\",\"dsql:UpdateCluster\","+ + "\"dsql:TagResource\",\"dsql:UntagResource\",\"dsql:ListTagsForResource\","+ + "\"dsql:GetVpcEndpointServiceName\"],\"Resource\":\"*\"}]}");+ as(user).get(clusterPath).then().statusCode(403).body("__type", equalTo("AccessDeniedException"));+ as(user).body(Map.of("deletionProtectionEnabled", false)).post(clusterPath).then().statusCode(403);+ as(user).urlEncodingEnabled(false).body(Map.of("tags", Map.of("team", "data"))).post(tagsPath)+ .then().statusCode(403);+ as(user).urlEncodingEnabled(false).get(tagsPath).then().statusCode(403);+ // The same tagging is served at /tags, naming the ARN in the query or the body.+ as(user).body(Map.of("resourceArn", cluster.arn(), "tags", Map.of("team", "data"))).post("/tags")+ .then().statusCode(403);+ as(user).queryParam("resourceArn", cluster.arn()).get("/tags").then().statusCode(403);+ as(user).queryParam("resourceArn", cluster.arn()).queryParam("tagKeys", "team").delete("/tags")+ .then().statusCode(403);+ as(user).get(vpcEndpointPath).then().statusCode(403);+ // The calls the policy does not name answer.+ as(user).get(clusterPath + "/policy").then().statusCode(200);+ as(user).get("/cluster").then().statusCode(200);++ cluster.removePolicy();+ as(user).get(clusterPath).then().statusCode(200);+ }++ /**+ * The control plane is checked against the resources DSQL names (Service Authorization Reference):+ * each cluster call against the cluster, and CreateCluster and ListClusters against+ * {@code cluster/*} (measured).+ */+ @Test+ void theControlPlaneIsCheckedAgainstTheClusterItNames() {+ String userName = "dsql-" + Long.toString(System.nanoTime(), 36);+ String authorization = EnforcementFixtures.auth(ACCOUNT, "iam");+ EnforcementFixtures.UserCredentials user = EnforcementFixtures.createUser(cleanup, httpPort, authorization,+ userName);+ EnforcementFixtures.putUserPolicy(httpPort, authorization, userName, "read", """+ {"Version":"2012-10-17","Statement":[+ {"Effect":"Allow","Action":"dsql:GetCluster","Resource":"%s"},+ {"Effect":"Allow","Action":"dsql:ListClusters","Resource":"arn:aws:dsql:%s:%s:cluster/*"}]}"""+ .formatted(cluster.arn(), DsqlClusterFixture.REGION, ACCOUNT));++ as(user).get("/cluster/" + cluster.identifier()).then().statusCode(200);+ as(user).get("/cluster").then().statusCode(200);+ as(user).get("/cluster/abcdefghijklmnopqrstuvwxyz").then().statusCode(403)+ .body("__type", equalTo("AccessDeniedException"));+ as(user).get("/cluster/" + cluster.identifier() + "/policy").then().statusCode(403);+ }+/** A new IAM user whose own policy lets it connect as {@code admin}. */private EnforcementFixtures.UserCredentials adminUser(String userName) {String authorization = EnforcementFixtures.auth(ACCOUNT, "iam");@@ -129,6 +197,12 @@ class DsqlClusterPolicyIntegrationTest {return user;}+ /** A control plane request signed with {@code user}'s key. */+ private RequestSpecification as(EnforcementFixtures.UserCredentials user) {+ return given().port(httpPort).contentType("application/json")+ .header("Authorization", EnforcementFixtures.auth(user.accessKeyId(), DsqlClusterFixture.REGION, "dsql"));+ }+private Connection connect(EnforcementFixtures.UserCredentials user) throws Exception {return cluster.connect("admin", cluster.token("DbConnectAdmin", user.accessKeyId(), user.secretAccessKey(),Instant.now(), 900, null));diff --git a/src/test/java/io/github/hectorvent/floci/services/iam/IamRestRouteCoverageTest.java b/src/test/java/io/github/hectorvent/floci/services/iam/IamRestRouteCoverageTest.javaindex cd5c0e135b..767ac485f6 100644--- a/src/test/java/io/github/hectorvent/floci/services/iam/IamRestRouteCoverageTest.java+++ b/src/test/java/io/github/hectorvent/floci/services/iam/IamRestRouteCoverageTest.java@@ -53,7 +53,7 @@ class IamRestRouteCoverageTest {/** Models every operation of which is checked: the services whose routes the registry maps in full. */private static final Set<String> FULLY_ROUTED_MODELS =- Set.of("scheduler", "pipes", "lambda", "lambda-microvms", "lambda-core");+ Set.of("scheduler", "pipes", "lambda", "lambda-microvms", "lambda-core", "dsql");private final IamActionRegistry registry = new IamActionRegistry();diff --git a/src/test/java/io/github/hectorvent/floci/services/iam/ResourceArnBuilderTest.java b/src/test/java/io/github/hectorvent/floci/services/iam/ResourceArnBuilderTest.javaindex 79e15958d2..7cb22232cf 100644--- a/src/test/java/io/github/hectorvent/floci/services/iam/ResourceArnBuilderTest.java+++ b/src/test/java/io/github/hectorvent/floci/services/iam/ResourceArnBuilderTest.java@@ -1371,6 +1371,37 @@ class ResourceArnBuilderTest {assertEquals("*", backed.build("lambda", ctx, "us-east-1", "000000000000"));}+ @Test+ void dsqlRoutesResolveTheClusterTheTaggedArnOrNone() {+ String cluster = "arn:aws:dsql:eu-west-1:000000000000:cluster/abcdefghijklmnopqrstuvwxyz";+ for (String path : List.of("/cluster/abcdefghijklmnopqrstuvwxyz", "/cluster/abcdefghijklmnopqrstuvwxyz/policy",+ "/clusters/abcdefghijklmnopqrstuvwxyz/vpc-endpoint-service-name", "/tags/" + cluster)) {+ when(uriInfo.getPath()).thenReturn(path);+ assertEquals(List.of(cluster), builder.buildResources("dsql", ctx, "eu-west-1", "000000000000"), path);+ }+ // The same tagging is served at /tags, the ARN in the resourceArn query parameter or body field.+ when(uriInfo.getPath()).thenReturn("/tags");+ queryParams.putSingle("resourceArn", cluster);+ assertEquals(List.of(cluster), builder.buildResources("dsql", ctx, "eu-west-1", "000000000000"));+ queryParams.clear();+ when(ctx.getMethod()).thenReturn("POST");+ setJsonBody("{\"resourceArn\":\"" + cluster + "\",\"tags\":{}}");+ assertEquals(List.of(cluster), builder.buildResources("dsql", ctx, "eu-west-1", "000000000000"));+ when(ctx.getMethod()).thenReturn("GET");+ // A stream route names the stream, or its cluster to create or list streams.+ when(uriInfo.getPath()).thenReturn("/stream/abcdefghijklmnopqrstuvwxyz");+ assertEquals(List.of(cluster), builder.buildResources("dsql", ctx, "eu-west-1", "000000000000"));+ when(uriInfo.getPath()).thenReturn("/stream/abcdefghijklmnopqrstuvwxyz/s1");+ assertEquals(List.of(cluster + "/stream/s1"), builder.buildResources("dsql", ctx, "eu-west-1", "000000000000"));+ // CreateCluster and ListClusters are checked against every cluster, as DSQL checks them (measured).+ when(uriInfo.getPath()).thenReturn("/cluster");+ assertEquals(List.of("arn:aws:dsql:eu-west-1:000000000000:cluster/*"),+ builder.buildResources("dsql", ctx, "eu-west-1", "000000000000"));+ when(uriInfo.getPath()).thenReturn("/cluster/abcdefghijklmnopqrstuvwxyz");+ assertEquals(List.of("arn:aws-cn:dsql:polygondwanaland-west-1:000000000000:cluster/abcdefghijklmnopqrstuvwxyz"),+ builder.buildResources("dsql", ctx, "polygondwanaland-west-1", "000000000000", "aws-cn"));+ }+@Testvoid schedulerRoutesResolveTheScheduleInItsGroupTheGroupOrTheTaggedArn() {when(uriInfo.getPath()).thenReturn("/schedules/nightly");diff --git a/src/test/resources/aws/rest-routes.json b/src/test/resources/aws/rest-routes.jsonindex a4d2394e44..cbc01f8519 100644--- a/src/test/resources/aws/rest-routes.json+++ b/src/test/resources/aws/rest-routes.json@@ -240,6 +240,28 @@"UpdateVpcLink": {"method": "PATCH", "requestUri": "/v2/vpclinks/{vpcLinkId}"}}},+ "dsql": {+ "credentialScope": "dsql",+ "apiVersion": "2018-05-10",+ "operations": {+ "CreateCluster": {"method": "POST", "requestUri": "/cluster"},+ "CreateStream": {"method": "POST", "requestUri": "/stream/{clusterIdentifier}"},+ "DeleteCluster": {"method": "DELETE", "requestUri": "/cluster/{identifier}"},+ "DeleteClusterPolicy": {"method": "DELETE", "requestUri": "/cluster/{identifier}/policy"},+ "DeleteStream": {"method": "DELETE", "requestUri": "/stream/{clusterIdentifier}/{streamIdentifier}"},+ "GetCluster": {"method": "GET", "requestUri": "/cluster/{identifier}"},+ "GetClusterPolicy": {"method": "GET", "requestUri": "/cluster/{identifier}/policy"},+ "GetStream": {"method": "GET", "requestUri": "/stream/{clusterIdentifier}/{streamIdentifier}"},+ "GetVpcEndpointServiceName": {"method": "GET", "requestUri": "/clusters/{identifier}/vpc-endpoint-service-name"},+ "ListClusters": {"method": "GET", "requestUri": "/cluster"},+ "ListStreams": {"method": "GET", "requestUri": "/stream/{clusterIdentifier}"},+ "ListTagsForResource": {"method": "GET", "requestUri": "/tags/{resourceArn}"},+ "PutClusterPolicy": {"method": "POST", "requestUri": "/cluster/{identifier}/policy"},+ "TagResource": {"method": "POST", "requestUri": "/tags/{resourceArn}"},+ "UntagResource": {"method": "DELETE", "requestUri": "/tags/{resourceArn}"},+ "UpdateCluster": {"method": "POST", "requestUri": "/cluster/{identifier}"}+ }+ },"lambda": {"credentialScope": "lambda","apiVersion": "2015-03-31",diff --git a/tools/aws/regen_rest_routes.py b/tools/aws/regen_rest_routes.pyindex 8f6cd0a0e9..6637b9de7b 100644--- a/tools/aws/regen_rest_routes.py+++ b/tools/aws/regen_rest_routes.py@@ -34,6 +34,7 @@ OUTPUT = REPO_ROOT / "src/test/resources/aws/rest-routes.json"MODELS: dict[str, str] = {"apigateway": "apigateway","apigatewayv2": "apigateway",+ "dsql": "dsql","lambda": "lambda","lambda-core": "lambda","lambda-microvms": "lambda",