/lambda_ddb_function.py Secret
Created
March 25, 2024 23:42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create Lambda Function that creates records in DynamoDB | |
lambda_ddb_function = _alambda.PythonFunction( | |
self, | |
"RSSLambdaDDBFunc", | |
entry="./lambda_rss_ddb_func", | |
function_name="rss_lambda_ddb_func", | |
description="Lambda function to call RSS feed and store data in DynamoDB", | |
runtime=_lambda.Runtime.PYTHON_3_12, | |
index="lambda_handler.py", | |
handler="lambda_handler", | |
timeout=Duration.seconds(300), | |
) | |
# Permissions for RSSLambdaDDBFunc to access DynamoDB | |
table.grant_full_access(lambda_ddb_function) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment