-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtemplate.yml
36 lines (35 loc) · 1011 Bytes
/
template.yml
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
Gaming API AWS SAM application
Resources:
QuarkusBedrock:
Type: AWS::Serverless::Function
Properties:
Handler: io.quarkus.amazon.lambda.runtime.QuarkusStreamHandler::handleRequest
Runtime: java17
CodeUri: target/function.zip
MemorySize: 1024
SnapStart:
ApplyOn: PublishedVersions
AutoPublishAlias: snap
Timeout: 15
Policies:
- Statement:
- Sid: bedrockall
Effect: Allow
Action:
- bedrock:*
Resource: '*'
Environment:
Variables:
JAVA_TOOL_OPTIONS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
Events:
HttpApiEvent:
Type: HttpApi
Outputs:
QuarkusBedrock:
Description: URL for application
Value: !Sub 'https://${ServerlessHttpApi}.execute-api.${AWS::Region}.amazonaws.com/'
Export:
Name: QuarkusBedrock