-
Notifications
You must be signed in to change notification settings - Fork 55
/
sam.yaml
30 lines (28 loc) · 956 Bytes
/
sam.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: AWS Serverless Spring Boot 2 API - com.github.fenixsoft::bookstore-serverless-awslambda
Globals:
Api:
EndpointConfiguration: REGIONAL
Resources:
BookstoreServerlessAwslambdaFunction:
Type: AWS::Serverless::Function
Properties:
Handler: com.github.fenixsoft.StreamLambdaHandler::handleRequest
Runtime: java8
CodeUri: target/bookstore-serverless-awslambda-1.0-SNAPSHOT-lambda-package.zip
MemorySize: 512
Policies: AWSLambdaBasicExecutionRole
Timeout: 30
Events:
GetResource:
Type: Api
Properties:
Path: /{proxy+}
Method: any
Outputs:
BookstoreServerlessAwslambdaApi:
Description: URL for application
Value: !Sub 'https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/'
Export:
Name: BookstoreServerlessAwslambdaApi