-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
35 lines (35 loc) · 894 Bytes
/
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: An AWS Serverless Specification template describing your function.
Resources:
TinyURL:
Type: 'AWS::Serverless::Function'
Properties:
Handler: 'tinyurl.App::handleRequest'
Runtime: java11
CodeUri: TinyUrlFunction
MemorySize: 512
Timeout: 30
Role: 'arn:aws:iam::764470733897:role/lambda-role'
Events:
Api1:
Type: Api
Properties:
Path: /shorten
Method: POST
Api2:
Type: Api
Properties:
Path: '/{tinyurl}'
Method: GET
Api3:
Type: Api
Properties:
Path: /
Method: GET
Api4:
Type: Api
Properties:
Path: /MyResource
Method: ANY
Tracing: Active