-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathtemplate.yaml
More file actions
43 lines (38 loc) · 1.25 KB
/
template.yaml
File metadata and controls
43 lines (38 loc) · 1.25 KB
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
unicorn-location-api
This API allows you to store the location of your favorite Unicorns
Globals:
Function:
Timeout: 20
Resources:
UnicornLocationFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: UnicornLocationFunction
FunctionName: unicorn-location-api-post
Handler: com.unicorn.location.UnicornPostLocationHandler::handleRequest
Runtime: java25
Architectures:
- x86_64
MemorySize: 1024
Environment:
Variables:
PARAM1: VALUE
Events:
UnicornLocationEvent:
Type: Api
Properties:
Path: /locations
Method: post
Outputs:
UnicornLocationApi:
Description: "API Gateway endpoint URL for Prod stage for Unicorn Location function"
Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/locations"
UnicornLocationFunction:
Description: "Unicorn Location Lambda Function ARN"
Value: !GetAtt UnicornLocationFunction.Arn
UnicornLocationFunctionIamRole:
Description: "Implicit IAM Role created for Unicorn Location function"
Value: !GetAtt UnicornLocationFunctionRole.Arn