Repository navigation
Releases
ruby-cdk 0.3.0
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.
ruby-cdk 0.2.0
Second release of ruby-cdk: the AWS CDK's programming model in pure Ruby — no Node, no jsii, no npm. This one fixes the one defect that mattered and carries everything the last two weeks shipped.
Fixed. 0.1.0 could not update an existing stack: every deploy after the first failed with ChangeSetNotFound against AWS, while every test was green — the scripted fake answered a status where AWS answers an error, and the integration scenario only ever created stacks. The engine now takes the typed error, the scenario deploys three times (created, updated, unchanged), and a second scenario runs a Lambda function through bootstrap, hotswap, a refused change and the fallback against a CloudFormation on every push.
Constructs. KMS::Key (the CDK's grants, key policy, aliases, rotation) with customer-managed encryption on the bucket, the queue, the topic and the table, key actions in the grants; ApiGateway::RestApi and Events::Rule#add_target write the AWS::Lambda::Permission their service principal needs, through the new Function#add_permission.
CLI. deploy --hotswap and --hotswap-fallback, the CDK's development-loop fast path (one UpdateStack for a Lambda function's code and in-place configuration, the CDK's reporting lines, change sets still the default); deploy --previous-parameters (the CDK's reuse of deployed parameter values — and the deployed value now comes before the template's default, the CDK's order); diff --fail-on={any-change|broadening|destructive|never}.
Evidence. Both integration scenarios ran against the real sandbox under the WF-5 protocol; KMS was verified with a real write and read through each encrypted service; examples/api deploys a function behind an IAM-authorized REST API and a schedule, with the queue, topic, SSM and secret-reference wiring. Parity against the CDK's own suites is now counted from the origins, not remembered: 2,084 cases, 666 ported, every ported case passing, every header held to test/cdk/origins.json. The whole suite: 2,228 runs, 25,320 assertions, coverage 98.8% over a floor of 85%.
The vendored schema model follows AWS's 273.0.0 specification, and the corpus follows aws/aws-cdk. 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.
ruby-cdk 0.1.0
First release of ruby-cdk: the AWS CDK's programming model in pure Ruby — no Node, no jsii, no npm.
Synthesis. Ruby objects to byte-identical CloudFormation templates; safe defaults per resource type from the CDK's own retained list (RetainExceptOnCreate/Retain/Snapshot).
Validation. A vendored model of 2,154 AWS resource types with the normalizer and rules V1–V23, measured against 400 templates the CDK itself synthesized.
Deployment. Change sets only; the account rule; the skip rule; events, outputs, termination protection; large templates deployed by URL.
Assets. Content-hashed, deterministically zipped, uploaded with the bucket's expected owner named on every call; bootstrap stack included.
Constructs. S3::Bucket, IAM::Role, Lambda::Function, DynamoDB::Table, SQS::Queue, SNS::Topic, Logs::LogGroup, with explicit least-privilege grants.
Diff. ruby-cdk diff against the deployed template: replacements priced from the model, a security view over every policy-document property. Writes nothing.
Nag. Seventeen security rules, suppressed per resource or in .ruby-cdk/nag.yml.
Test kit. RubyCdk::Test, the CDK's assertions ported.
Measured against the CDK: 1,551 cases of its own suites, 445 ported, all passing. The full suite (1,949 runs) passes with no AWS credential reachable; deploy and destroy run in CI against the AWS Emulator. 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.