-
Notifications
You must be signed in to change notification settings - Fork 0
/
saml.yaml
28 lines (27 loc) · 860 Bytes
/
saml.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
Transform: 'AWS::Serverless-2016-10-31'
Parameters:
SamMultipler:
Description: "SAM multiplier. Make this really big to have a party :)"
Type: "String"
Default: "1"
OriginUrl:
Description: "The origin url to allow CORS requests from. This will be the base URL of your static SAM website."
Type: "String"
Default: "1"
Resources:
GetSAMPartyCount:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs4.3
CodeUri: ./
Environment:
Variables:
SAM_MULTIPLIER: !Ref SamMultipler
ORIGIN_URL: !Ref OriginUrl
Events:
GetResource:
Type: Api
Properties:
Path: /sam
Method: get