-
Notifications
You must be signed in to change notification settings - Fork 0
/
saml.yaml
25 lines (25 loc) · 852 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
Transform: 'AWS::Serverless-2016-10-31'
Parameters:
SamMultipler:
Description: "SAM multiplier. Make this really big to have a party :)"
Type: "String"
OriginUrl:
Description: "The origin url to allow CORS requests from. This will be the base URL of your static SAM website."
Type: "String"
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