-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
43 lines (39 loc) · 1.03 KB
/
template.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: >
MyGinbootProject
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
Function:
Timeout: 10
MemorySize: 128
Resources:
MyGinbootProjectAPI:
Type: AWS::Serverless::Api
Properties:
StageName: prod
MyGinbootProjectFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: .
Handler: bootstrap
Runtime: provided.al2
Architectures:
- x86_64
Events:
ApiEvents:
Type: Api
Properties:
Path: /{proxy+}
Method: ANY
RestApiId: !Ref MyGinbootProjectAPI
Environment:
Variables:
MY_VARIABLE: TEST
Metadata:
BuildMethod: makefile
Outputs:
MyGinbootProjectEndpoint:
Description: API Gateway MyGinbootProject Endpoint
Value:
Fn::Sub: https://${MyGinbootProjectAPI}.execute-api.${AWS::Region}.amazonaws.com/prod