Skip to content

ruby-cdk 0.2.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 08:52
· 22 commits to main since this release

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.