Skip to content

Instantly share code, notes, and snippets.

@AdrianM10
Created March 25, 2024 23:42
# 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