Q: 16
A developer is creating an AWS Serverless Application Model (AWS SAM) template. The AWS SAM
template contains the definition of multiple AWS Lambda functions, an Amazon S3 bucket, and an
Amazon CtoudFront distribution. One of the Lambda functions runs on Lambda@Edge in the
CloudFront distribution. The S3 bucket is configured as an origin for the CloudFront distribution.
When the developer deploys the AWS SAM template in the eu-west-1 Region, the creation of the
stack fails.
Which of the following could be the reason for this issue?
Options
Discussion
Makes sense to go with B. Lambda@Edge requires the function to be created in us-east-1, no matter where the CloudFront or other resources are. Pretty sure that’s what causes the stack failure here. Agree?
B imo. Lambda@Edge deploys have to be in us-east-1 even if your stack is in another region. Seen this issue mentioned before.
Be respectful. No spam.