-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsam.yaml
34 lines (33 loc) · 899 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
31
32
33
34
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: AWS Serverless Template
Globals:
Api:
EndpointConfiguration: REGIONAL
Resources:
AwsLambdaTemplate:
Type: AWS::Serverless::Function
Properties:
Handler: not.used.in.provided.runtime
Runtime: provided
CodeUri: build/function.zip
MemorySize: 128
# Policies: AWSLambdaBasicExecutionRole
Timeout: 15
Events:
RootResource:
Type: Api
Properties:
Path: /
Method: any
ElseResource:
Type: Api
Properties:
Path: /{proxy+}
Method: POST
Outputs:
AwsLambdaTemplate:
Description: URL for application
Value: !Sub 'https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/'
Export:
Name: micronaut-application-helloworld