-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsam.tpl.yaml
43 lines (41 loc) · 1.04 KB
/
sam.tpl.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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: AWS Serverless Quarkus HTTP - piggybank-1.0.0-SNAPSHOT
Globals:
Api:
EndpointConfiguration: REGIONAL
BinaryMediaTypes:
- "*/*"
Resources:
Piggybank:
Type: AWS::Serverless::Function
Properties:
Handler: io.quarkus.amazon.lambda.runtime.QuarkusStreamHandler::handleRequest
Runtime: java11
CodeUri: piggybank/target/function.zip
MemorySize: 512
Policies: AWSLambdaBasicExecutionRole
Timeout: 15
Events:
HttpApiEvent:
Type: HttpApi
VpcConfig:
SecurityGroupIds:
- $SECGRP
SubnetIds:
- $SUBNET0
- $SUBNET1
- $SUBNET2
Outputs:
PiggybankApi:
Description: URL for application
Value:
Fn::Join:
- ''
- - 'https://'
- Ref: 'ServerlessHttpApi'
- '.execute-api.'
- Ref: 'AWS::Region'
- '.amazonaws.com/'
Export:
Name: PiggybankApi