0
votes

I am new to AWS world and trying to create Lambda@Edge from Github project. I went through the tutorial and could create lambda from AWS console.

Now that I am aware of the basics I wanted to create a GitHub project for lambda handler and deploy it from there.

I went through AWS documentation here. Now I am confused what to do. Lambda@Edge function I created calls to Route 53 domain (which is custom CNAME for API Gateway exposing DynamoDB API). So I feel like I am in the middle which way to go? Is it the best case for SAM or cloud formation?

https://docs.aws.amazon.com/lambda/latest/dg/deploying-lambda-apps.html

1
Your lambda@edge function can call DynamoDB directly, without needing APIGateway.cementblocks

1 Answers

0
votes

I recommending using SAM because you need to update the lambda alias (SAM will do this for you, if you set AutoPublishAlias: live on the SAM function definition, see this example when you deploy a new version.