Skip to content

Commit 0998da1

Browse files
committed
use Ruby 2.5
1 parent 10f27da commit 0998da1

File tree

5 files changed

+36
-4
lines changed

5 files changed

+36
-4
lines changed

sample-apps/blank-ruby/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The project source includes function code and supporting resources:
1111
Use the following instructions to deploy the sample application.
1212

1313
# Requirements
14-
- [Ruby 2.7](https://www.ruby-lang.org/en/downloads/)
14+
- [Ruby 2.5](https://www.ruby-lang.org/en/downloads/)
1515
- The Bash shell. For Linux and macOS, this is included by default. In Windows 10, you can install the [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to get a Windows-integrated version of Ubuntu and Bash.
1616
- [The AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html).
1717

Loading
Loading
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
AWSTemplateFormatVersion: '2010-09-09'
2+
Transform: 'AWS::Serverless-2016-10-31'
3+
Description: An AWS Lambda application that calls the Lambda API.
4+
Resources:
5+
function:
6+
Type: AWS::Serverless::Function
7+
Properties:
8+
Handler: lambda_function.lambda_handler
9+
Runtime: ruby2.7
10+
CodeUri: function/.
11+
Description: Call the AWS Lambda API
12+
Timeout: 10
13+
# Function's execution role
14+
Policies:
15+
- AWSLambdaBasicExecutionRole
16+
- AWSLambdaReadOnlyAccess
17+
- AWSXrayWriteOnlyAccess
18+
Tracing: Active
19+
Environment:
20+
Variables:
21+
GEM_PATH: /opt/ruby/2.7.0
22+
Layers:
23+
- !Ref libs
24+
libs:
25+
Type: AWS::Serverless::LayerVersion
26+
Properties:
27+
LayerName: blank-ruby-lib
28+
Description: Dependencies for the blank-ruby sample app.
29+
ContentUri: lib/.
30+
CompatibleRuntimes:
31+
- ruby2.7
32+

sample-apps/blank-ruby/template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Resources:
66
Type: AWS::Serverless::Function
77
Properties:
88
Handler: lambda_function.lambda_handler
9-
Runtime: ruby2.7
9+
Runtime: ruby2.5
1010
CodeUri: function/.
1111
Description: Call the AWS Lambda API
1212
Timeout: 10
@@ -18,7 +18,7 @@ Resources:
1818
Tracing: Active
1919
Environment:
2020
Variables:
21-
GEM_PATH: /opt/ruby/2.7.0
21+
GEM_PATH: /opt
2222
Layers:
2323
- !Ref libs
2424
libs:
@@ -28,5 +28,5 @@ Resources:
2828
Description: Dependencies for the blank-ruby sample app.
2929
ContentUri: lib/.
3030
CompatibleRuntimes:
31-
- ruby2.7
31+
- ruby2.5
3232

0 commit comments

Comments
 (0)