Deploying a Lambda Function from the AWS Serverless Application Repository
<p>The AWS <a href="https://aws.amazon.com/serverless/serverlessrepo/" rel="noopener ugc nofollow" target="_blank">Serverless Application Repository</a> is a useful resource that contains pre-built configurable applications for some common tasks/usage patterns to make our lives a bit easier. In this example I needed to use the Athena Dynamo DB Connector that adds support to Athena for querying and joining on data in DynamoDB tables as well as the existing Athena datasources (e.g. parquet files) through federated queries.</p>
<p>Because our deployments are managed by Terraform I needed a way to automate deployment of this Serverless Application to a lambda in our AWS accounts via Terraform.</p>
<p>Before setting this up in Terraform let’s take a look at the resource to set some context. When I was testing the integration and setting up the DynamoDB Connector in Athena via the AWS web console it automatically created the lambda for me (see Fig 1. below)</p>
<p><a href="https://medium.com/@andy.ong_85554/deploying-a-lambda-function-from-the-aws-serverless-application-repository-9543424ed727"><strong>Learn More</strong></a></p>