-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtemplate.yaml
27 lines (27 loc) · 868 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
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: A starter AWS Lambda function.
Resources:
GetHtmlFunction:
Type: 'AWS::Serverless::Function'
Properties:
CodeUri: .
Handler: index.handler
Runtime: nodejs6.10
Description: A starter AWS Lambda function.
Events:
GetHtmlApi:
Type: Api
Properties:
Path: /{proxy+}
Method: Any
# Current workaround needed if you want to use the APIGW Console Test button
# See https://github.com/awslabs/serverless-application-model/issues/59#issuecomment-348709355
ConfigLambdaPermission:
Type: "AWS::Lambda::Permission"
DependsOn:
- GetHtmlFunction
Properties:
Action: lambda:InvokeFunction
FunctionName: !Ref GetHtmlFunction
Principal: apigateway.amazonaws.com