comparison template.yaml @ 8:6541622b6127

add tweet analysis method
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Fri, 17 Sep 2021 21:10:02 +0200
parents 54e71cf6e324
children
comparison
equal deleted inserted replaced
7:1b1296559c31 8:6541622b6127
150 ## 150 ##
151 ### START FUNCTION CONFIGURATION ### 151 ### START FUNCTION CONFIGURATION ###
152 ## 152 ##
153 153
154 # Define lambda functions 154 # Define lambda functions
155 GetTweetSentimentFunction: 155 TweetSentimentHandler:
156 Type: AWS::Serverless::Function 156 Type: AWS::Serverless::Function
157 Properties: 157 Properties:
158 FunctionName: GetTweetSentimentFunction 158 FunctionName: GetTweetSentimentFunction
159 Description: Fetch tweets and analyse sentiment using AWS Comprehend 159 Description: Fetch tweets and analyse sentiment using AWS Comprehend
160 CodeUri: src/ 160 CodeUri: src/
161 Handler: handlers/sentiment.get_tweet_sentiment 161 Handler: handlers/tweet_sentiment_handler.get_tweet_sentiment
162 Runtime: python3.9 162 Runtime: python3.9
163 Policies: 163 Policies:
164 - AWSSecretsManagerGetSecretValuePolicy: 164 - AWSSecretsManagerGetSecretValuePolicy:
165 SecretArn: 165 SecretArn:
166 arn:aws:secretsmanager:eu-west-2:339008578167:secret:tweet-analysis-keys-gKo6DQ 166 arn:aws:secretsmanager:eu-west-2:339008578167:secret:tweet-analysis-keys-gKo6DQ