Skip to content

Commit 8f96c68

Browse files
committed
ruby2.5 runtime is deprecated
1 parent 49cbaba commit 8f96c68

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class ExampleStack extends cdk.Stack {
3131

3232
## Description
3333

34-
`RubyFunction` deploys the `sourceDirectory` as a Lambda function written in Ruby. `runtime` is expected to be a Ruby-family Lambda Runtime (i.e., RUBY_2_5 or RUBY_2_7 at the moment).
34+
`RubyFunction` deploys the `sourceDirectory` as a Lambda function written in Ruby. `runtime` is expected to be a Ruby-family Lambda Runtime (i.e., RUBY\_2\_7 at the moment).
3535

3636
If a file named "Gemfile" exists directly inside `sourceDirectory`, the dependency gems are bundled using [Bundler](https://bundler.io/). Bundling is performed inside a [Docker](https://www.docker.com/) container using the Lambda builder images privided by AWS. The `bundlerConfig` prop may have the `without` field to specify a colon-separated list of gem groups to skip installation.
3737

example/lib/example-stack.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ export class ExampleStack extends cdk.Stack {
1212
public constructor(scope: Construct, id: string, props?: ExampleStackProps) {
1313
super(scope, id, props);
1414

15-
new lambdaRuby.RubyFunction(this, 'RubyFunction2_5', {
16-
runtime: lambda.Runtime.RUBY_2_5,
17-
sourceDirectory: path.join(__dirname, '../app'),
18-
handler: 'main.handler',
19-
});
20-
2115
new lambdaRuby.RubyFunction(this, 'RubyFunction2_7', {
2216
runtime: lambda.Runtime.RUBY_2_7,
2317
sourceDirectory: path.join(__dirname, '../app'),

0 commit comments

Comments
 (0)