-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsam.jvm.local.yaml
48 lines (45 loc) · 1.49 KB
/
sam.jvm.local.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: AWS Serverless Quarkus HTTP - org.acme::quarkus-lambda
Globals:
Api:
EndpointConfiguration: REGIONAL
BinaryMediaTypes:
- "*/*"
Resources:
QuarkusLambdaFunction:
Type: AWS::Serverless::Function
Properties:
Handler: io.quarkus.amazon.lambda.runtime.QuarkusStreamHandler::handleRequest
Runtime: java11
CodeUri: build/quarkus-lambda-1.0.0-SNAPSHOT-runner.jar
MemorySize: 512
Role: arn:aws:iam::190326285065:role/lambda-ex
Timeout: 10
Events:
GetResource:
Type: Api
Properties:
Path: /{proxy+}
Method: any
Environment:
Variables:
QUARKUS_DATASOURCE_JDBC_URL: !Ref QuarkusDatasourceJdbcUrl
QUARKUS_DATASOURCE_REACTIVE_URL: !Ref QuarkusDatasourceReactiveUrl
QUARKUS_DATASOURCE_USERNAME: !Ref QuarkusDatasourceUsername
QUARKUS_DATASOURCE_PASSWORD: !Ref QuarkusDatasourcePassword
Parameters:
QuarkusDatasourceJdbcUrl:
Type: String
QuarkusDatasourceReactiveUrl:
Type: String
QuarkusDatasourceUsername:
Type: String
QuarkusDatasourcePassword:
Type: String
Outputs:
QuarkusLambdaApi:
Description: URL for application
Value: !Sub 'https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/'
Export:
Name: QuarkusLambdaApi