Skip to content

Commit

Permalink
move samples/ archetypes to java11 runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
deki committed Aug 10, 2022
1 parent 8962d53 commit 0b92c8e
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ From the project root folder - where the `template.yml` file is located - start
$ sam local start-api

...
Mounting ${groupId}.StreamLambdaHandler::handleRequest (java8) at http://127.0.0.1:3000/{proxy+} [OPTIONS GET HEAD POST PUT DELETE PATCH]
Mounting ${groupId}.StreamLambdaHandler::handleRequest (java11) at http://127.0.0.1:3000/{proxy+} [OPTIONS GET HEAD POST PUT DELETE PATCH]
...
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: ${groupId}.StreamLambdaHandler::handleRequest
Runtime: java8
Runtime: java11
CodeUri: .
MemorySize: 512
Policies: AWSLambdaBasicExecutionRole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ From the project root folder - where the `template.yml` file is located - start
$ sam local start-api

...
Mounting ${groupId}.StreamLambdaHandler::handleRequest (java8) at http://127.0.0.1:3000/{proxy+} [OPTIONS GET HEAD POST PUT DELETE PATCH]
Mounting ${groupId}.StreamLambdaHandler::handleRequest (java11) at http://127.0.0.1:3000/{proxy+} [OPTIONS GET HEAD POST PUT DELETE PATCH]
...
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: ${groupId}.StreamLambdaHandler::handleRequest
Runtime: java8
Runtime: java11
CodeUri: .
MemorySize: 512
Policies: AWSLambdaBasicExecutionRole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ From the project root folder - where the `template.yml` file is located - start
$ sam local start-api

...
Mounting ${groupId}.StreamLambdaHandler::handleRequest (java8) at http://127.0.0.1:3000/{proxy+} [OPTIONS GET HEAD POST PUT DELETE PATCH]
Mounting ${groupId}.StreamLambdaHandler::handleRequest (java11) at http://127.0.0.1:3000/{proxy+} [OPTIONS GET HEAD POST PUT DELETE PATCH]
...
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: ${groupId}.StreamLambdaHandler::handleRequest
Runtime: java8
Runtime: java11
CodeUri: .
MemorySize: 512
Policies: AWSLambdaBasicExecutionRole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ From the project root folder - where the `template.yml` file is located - start
$ sam local start-api

...
Mounting ${groupId}.StreamLambdaHandler::handleRequest (java8) at http://127.0.0.1:3000/{proxy+} [OPTIONS GET HEAD POST PUT DELETE PATCH]
Mounting ${groupId}.StreamLambdaHandler::handleRequest (java11) at http://127.0.0.1:3000/{proxy+} [OPTIONS GET HEAD POST PUT DELETE PATCH]
...
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: ${groupId}.StreamLambdaHandler::handleRequest
Runtime: java8
Runtime: java11
CodeUri: .
MemorySize: 512
Policies: AWSLambdaBasicExecutionRole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ From the project root folder - where the `template.yml` file is located - start
$ sam local start-api

...
Mounting ${groupId}.StreamLambdaHandler::handleRequest (java8) at http://127.0.0.1:3000/{proxy+} [OPTIONS GET HEAD POST PUT DELETE PATCH]
Mounting ${groupId}.StreamLambdaHandler::handleRequest (java11) at http://127.0.0.1:3000/{proxy+} [OPTIONS GET HEAD POST PUT DELETE PATCH]
...
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: com.amazonaws.serverless.proxy.struts2.Struts2LambdaHandler::handleRequest
Runtime: java8
Runtime: java11
CodeUri: .
MemorySize: 512
Policies: AWSLambdaBasicExecutionRole
Expand Down
2 changes: 1 addition & 1 deletion samples/jersey/pet-store/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: com.amazonaws.serverless.sample.jersey.StreamLambdaHandler::handleRequest
Runtime: java8
Runtime: java11
CodeUri: .
MemorySize: 512
Policies: AWSLambdaBasicExecutionRole
Expand Down
2 changes: 1 addition & 1 deletion samples/spark/pet-store/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: com.amazonaws.serverless.sample.spark.StreamLambdaHandler::handleRequest
Runtime: java8
Runtime: java11
CodeUri: .
MemorySize: 512
Policies: AWSLambdaBasicExecutionRole
Expand Down
2 changes: 1 addition & 1 deletion samples/spring/pet-store/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: com.amazonaws.serverless.sample.spring.StreamLambdaHandler::handleRequest
Runtime: java8
Runtime: java11
CodeUri: .
MemorySize: 512
Policies: AWSLambdaBasicExecutionRole
Expand Down
28 changes: 15 additions & 13 deletions samples/springboot2/pet-store/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,23 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: com.amazonaws.serverless.sample.springboot2.StreamLambdaHandler::handleRequest
Runtime: java8
Runtime: java11
CodeUri: .
MemorySize: 1512
Policies: AWSLambdaBasicExecutionRole
Timeout: 60
Events:
HttpApiEvent:
Type: HttpApi
Properties:
TimeoutInMillis: 20000
PayloadFormatVersion: '1.0'
FunctionUrlConfig:
AuthType: NONE
# Events:
# HttpApiEvent:
# Type: HttpApi
# Properties:
# TimeoutInMillis: 20000
# PayloadFormatVersion: '1.0'

Outputs:
SpringBootPetStoreApi:
Description: URL for application
Value: !Sub 'https://${ServerlessHttpApi}.execute-api.${AWS::Region}.amazonaws.com/pets'
Export:
Name: SpringBootPetStoreApi
#Outputs:
# SpringBootPetStoreApi:
# Description: URL for application
# Value: !Sub 'https://${ServerlessHttpApi}.execute-api.${AWS::Region}.amazonaws.com/pets'
# Export:
# Name: SpringBootPetStoreApi
2 changes: 1 addition & 1 deletion samples/struts2/pet-store/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Resources:
Type: AWS::Serverless::Function
Properties:
Handler: com.amazonaws.serverless.proxy.struts2.Struts2LambdaHandler::handleRequest
Runtime: java8
Runtime: java11
CodeUri: .
MemorySize: 256
Policies: AWSLambdaBasicExecutionRole
Expand Down

0 comments on commit 0b92c8e

Please sign in to comment.