-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcfn.yml
More file actions
25 lines (23 loc) · 671 Bytes
/
cfn.yml
File metadata and controls
25 lines (23 loc) · 671 Bytes
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Hello World Stack for a Node.js AWS Lambda.
Resources:
NodeFunction:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs12.x
Timeout: 10
CodeUri: ./target
Policies:
- AWSLambdaBasicExecutionRole
Events:
GetResource:
Type: Api
Properties:
Path: /hello
Method: get
Outputs:
TestUrl:
Value: !Sub https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello
Description: The url to invoke your Node Lambda function.