Skip to content

v2.15.0

Latest

Choose a tag to compare

@NitinKumar004 NitinKumar004 released this 26 Oct 10:20
2729b3e

cloudemu — the cloud, in memory

Release Notes — v2.15.0

The headline: CloudWatch Logs and EventBridge grow into the real services. Logs Insights queries, the full filter pattern language, metric filters that publish like AWS, export tasks to S3 and data protection policies all work, and EventBridge gains archives and replay, connections and API destinations that call real HTTP endpoints, global endpoints and partner event sources. Batch runs real jobs, KMS adds ECDH and custom key stores, Secrets Manager replicates across Regions, Network Firewall serves most of its API, and Kinesis, Kafka, EFS, SQS, Keyspaces and ElastiCache close their parity gaps.

The zero-dependency in-memory default is unchanged.


✨ Features

Amazon CloudWatch Logs

  • Logs Insights: StartQuery, GetQueryResults, StopQuery, DescribeQueries, GetLogRecord and GetLogGroupFields, with a query engine for fields, filter, sort, limit, display, stats, parse and dedup over system and JSON fields.
  • Filter pattern language: unstructured, regex, JSON and space-delimited patterns for FilterLogEvents, metric filters, subscription filters and TestMetricFilter, validated the way AWS does, with the per-group quotas.
  • Metric filters: each match is published as its own sample per dimension set with the filter's unit, defaultValue is sent once per period with no match, and $name, $N and $.path metric values are read from the matched event.
  • Export tasks: CreateExportTask writes log events to a real S3 bucket, with the task lifecycle and the describe and cancel calls.
  • Data protection and account policies: data protection policies with their identifiers and audit settings, and account-level policies for data protection, subscription filters and field indexes.
  • Log groups: DeleteRetentionPolicy, ListLogGroups, KMS key association and log group classes. PutLogEvents drops events older than 14 days, past retention or more than 2 hours ahead, as AWS does.

Amazon EventBridge

  • Archives and replay: archives capture matching events on PutEvents and honor retention, and replays send them back to the bus with their rules, filtered on the full rule ARN.
  • Connections and API destinations: Basic, API key and OAuth client credentials connections are backed by real Secrets Manager secrets. Rule targets that are API destinations call the endpoint over HTTP in the background, with path, query and header parameters and cached OAuth tokens.
  • Global endpoints: endpoint CRUD with Region failover settings, and PutEvents routes events through the EndpointId it is given.
  • Partner event sources: partner sources, their event buses and the partner side calls.

AWS Batch jobs

SubmitJob, DescribeJobs, ListJobs, CancelJob and TerminateJob. Jobs move through the real states on the provider clock, honor dependsOn, array jobs and multi-node parallel jobs with their nodes, and apply container, ECS, EKS and node overrides. Scheduling policies have full CRUD, and "Batch Job State Change" events go to the EventBridge default bus. Multi-node work on Fargate is rejected, as the API reference says.

AWS KMS

  • DeriveSharedSecret: KEY_AGREEMENT keys for the NIST P-256, P-384 and P-521 curves, with a real ECDH shared secret that matches what the peer derives.
  • Custom key stores: CloudHSM and external key stores with create, describe, update, delete, connect and disconnect. Keys in a store that isn't connected report Unavailable and fail crypto calls.

AWS Secrets Manager replication

ReplicateSecretToRegions, RemoveRegionsFromReplication, StopReplicationToReplica and the replica fields on DescribeSecret. ListSecrets supports planned deletion, sorting and the full filter set.

AWS Network Firewall

Real update tokens with InvalidTokenException, change protection, TLS inspection configurations, VPC endpoint associations, resource policies, Availability Zone associations, flow operations and analysis reports. Subnets get their real zones from the VPC service, deletes of protected or in-use resources are refused, and every list supports its filters and paging.

Amazon Kinesis enhanced fan-out

SubscribeToShard keeps its event stream open, pushes new records as they arrive, sends idle heartbeats and ends promptly when the server shuts down.


🔧 Enhancements

Real-cloud parity: AWS

  • EventBridge: PutEvents validates each entry, enforces the 1 MB request limit and keeps result entries aligned with the request. PutTargets rejects conflicting input fields.

  • CloudWatch: GetMetricData and GetMetricStatistics validate Period, so a bad value returns InvalidParameterValue instead of crashing the server.

  • Step Functions: StartSyncExecution rejects STANDARD state machines.

  • ElastiCache: returns the real typed faults, serializes control-plane changes and reserves ids so concurrent creates can't collide.

  • Kinesis: throttling metrics, partition key and GetRecords limits, and CREATING and DELETING stream states under --async-settle.

  • Kafka:

    • clusters and VPC connections move through their async states;
    • AWS/Kafka metrics publish every minute;
    • brokers report the cluster's real client subnets;
    • the default encryption key is the account's aws/kafka managed key.
  • EFS: UpdateFileSystemProtection, creating and deleting states for file systems and mount targets, AWS/EFS storage and throughput metrics, and the LONG_ID default.

  • SQS:

    • the queue gauges publish once a minute per active queue;
    • ApproximateNumberOfMessagesNotVisible counts in-flight messages only;
    • SenderId is the caller's IAM unique id.

    STS AssumedRoleId now uses the role's real RoleId.

  • Keyspaces:

    • the rpc-v2-cbor protocol is served, so hashicorp/aws 6.69 and later can create keyspaces;
    • tags and names follow the documented rules;
    • GetTable leaves out the settings a table never enabled, so Terraform plans stay clean.
  • KMS: an unknown Marker on list calls returns InvalidMarkerException, DisabledException names the key ARN, aws: tag keys are rejected and grant principals are validated.

  • Resource discovery: the Resource Groups Tagging API and Resource Explorer skip a resource deleted mid-walk instead of failing the whole call.


👥 Contributors

Thanks to everyone who shipped code in this release.

Contributor Worked on
NitinKumar004 Nitin Kumar Patel (@NitinKumar004) CloudWatch Logs, EventBridge, CloudWatch, Step Functions, ElastiCache
Satyam-Trivedi-ZS Satyam Trivedi (@Satyam-Trivedi-ZS) Batch, KMS, Secrets Manager, Kinesis, Kafka, EFS, SQS, Keyspaces, resource discovery
thzgajendra Gajendra Malviya (@thzgajendra) Network Firewall

Full Changelog: v2.14.0...v2.15.0