Skip to content

Commit 7e77f7d

Browse files
author
Pankaj Agrawal
committed
use global for java runtime
1 parent d2abf16 commit 7e77f7d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

example/template.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Description: >
99
Globals:
1010
Function:
1111
Timeout: 20
12+
Runtime: java11
1213

1314
Resources:
1415
HelloWorldFunction:
1516
Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
1617
Properties:
1718
CodeUri: HelloWorldFunction
1819
Handler: helloworld.App::handleRequest
19-
Runtime: java11
2020
MemorySize: 512
2121
Environment: # More info about Env Vars: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object
2222
Variables:
@@ -35,7 +35,6 @@ Resources:
3535
Properties:
3636
CodeUri: HelloWorldFunction
3737
Handler: helloworld.AppValidation::handleRequest
38-
Runtime: java11
3938
MemorySize: 512
4039
Tracing: Active
4140
Events:
@@ -50,7 +49,6 @@ Resources:
5049
Properties:
5150
CodeUri: HelloWorldFunction
5251
Handler: helloworld.AppStream::handleRequest
53-
Runtime: java11
5452
MemorySize: 512
5553
Tracing: Active
5654
Environment:
@@ -68,7 +66,6 @@ Resources:
6866
Properties:
6967
CodeUri: HelloWorldFunction
7068
Handler: helloworld.AppParams::handleRequest
71-
Runtime: java11
7269
MemorySize: 512
7370
Tracing: Active
7471
Policies:
@@ -148,7 +145,6 @@ Resources:
148145
Properties:
149146
CodeUri: HelloWorldFunction
150147
Handler: helloworld.AppSqsEvent::handleRequest
151-
Runtime: java11
152148
MemorySize: 512
153149
Tracing: Active
154150
Policies:
@@ -174,7 +170,6 @@ Resources:
174170
Properties:
175171
CodeUri: HelloWorldFunction
176172
Handler: helloworld.AppSqsEventUtil::handleRequest
177-
Runtime: java11
178173
MemorySize: 512
179174
Tracing: Active
180175
Policies:

0 commit comments

Comments
 (0)