Mercurial > public > tweet-analysis
comparison template.yaml @ 0:cea9500dca25
first commit
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Tue, 14 Sep 2021 17:46:04 +0200 |
parents | |
children | 0277e7fc0f0a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:cea9500dca25 |
---|---|
1 AWSTemplateFormatVersion: '2010-09-09' | |
2 Transform: AWS::Serverless-2016-10-31 | |
3 Description: > | |
4 tweet-analysis | |
5 | |
6 Sample SAM Template for tweet-analysis | |
7 | |
8 # More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst | |
9 Globals: | |
10 Function: | |
11 Timeout: 3 | |
12 | |
13 Resources: | |
14 HelloWorldFunction: | |
15 Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction | |
16 Properties: | |
17 CodeUri: hello_world/ | |
18 Handler: app.lambda_handler | |
19 Runtime: python3.9 | |
20 Events: | |
21 HelloWorld: | |
22 Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api | |
23 Properties: | |
24 Path: /hello | |
25 Method: get | |
26 | |
27 Outputs: | |
28 # ServerlessRestApi is an implicit API created out of Events key under Serverless::Function | |
29 # Find out more about other implicit resources you can reference within SAM | |
30 # https://github.com/awslabs/serverless-application-model/blob/master/docs/internals/generated_resources.rst#api | |
31 HelloWorldApi: | |
32 Description: "API Gateway endpoint URL for Prod stage for Hello World function" | |
33 Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/" | |
34 HelloWorldFunction: | |
35 Description: "Hello World Lambda Function ARN" | |
36 Value: !GetAtt HelloWorldFunction.Arn | |
37 HelloWorldFunctionIamRole: | |
38 Description: "Implicit IAM Role created for Hello World function" | |
39 Value: !GetAtt HelloWorldFunctionRole.Arn |