Skip to content

ruby-cdk 0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 09:28
· 2 commits to main since this release

Third release of ruby-cdk: the AWS CDK's programming model in pure Ruby — no Node, no jsii, no npm. The core commands are complete, and the suite is at 100% line coverage.

New commands. ruby-cdk watch — the development loop: files watched, every change synthesized and deployed again, hotswapping by default; ruby-cdk drift — what CloudFormation holds against what the stack says, with the CDK's classification and --fail; ruby-cdk import — existing resources under a stack, through an IMPORT change set with the CDK's mapping forms and its DeletionPolicy: Retain default; ruby-cdk lookup — the context providers (D-022): EC2::Vpc.from_lookup(vpc_id:, tags:) and SSM::Parameter.from_lookup(name:) answering literals from a committed cdk.context.json, with synth refusing and naming the command on a miss.

Constructs. EC2::Vpc (the CDK's defaults: subnets per AZ, IGW, NAT, route tables, the CIDR carving), KMS::Key with customer-managed encryption on the bucket, queue, topic and table, Route53::HostedZone with the nine record classes.

Deploy. --notification-arns, --rollback-trigger-alarm-arns/--monitoring-time-minutes, --import-existing-resources, and the TemplateURL following the SDK's own endpoint (large templates now deploy under an endpoint override).

Fixed. 0.2.0 could not update an existing stack (the first update against real AWS failed with ChangeSetNotFound while every fake-based test was green — see the release notes of 0.2.0 and docs/). This line also fixes import passing a nil change-set name, and two diff/CLI defects the coverage push surfaced (the deep equivalence that never fired; the import follow-up deploy's nil --on-failure).

Verified. Both integration scenarios run against the AWS Emulator on every push and ran against the real sandbox under WF-5; the three new commands were verified against real AWS on 2026-12-01 (lookup answering a real parameter and the default VPC; drift catching a manual versioning flip; a real queue imported). Every line of lib/ is covered — 100.00%, the floor at 100. Parity against the CDK's own suites: 2,445 cases, 803 ported, every ported case passing, held to test/cdk/origins.json. The whole suite: 2,659 runs, 27,262 assertions.

The vendored schema model follows AWS's specification, refreshed weekly. See SECURITY.md for the reporting policy and docs/security.md for the threat model.

Install: gem install ruby-cdk (rubygems.org), or from source — see the README.