Hello!
I’m trying to attached a lambda@edge managed by serverless framework to cloudfront distribution managed by terraform.
More details:
Terraform creates a cloudfront (xxx.cloudfront.net).
I have a lambda at edge function in serverless and I want to attach it to the existing xxx.cloudfront.netdistribution. The below example somehow creates a new distribution:
service: serverless-geo-routing
Install plugin: npm install --save-dev @silvermine/serverless-plugin-cloudfront-lambda-edge. It attaches necessary permissions, so CloudFront can invoke the Lambda@Edge function.
I am curious if anybody has found a way to not create a Cloudfront distribution when using Lambda@Edge handlers in Serverless framework? It makes deployments very slow if you have a pre-existing distribution.