2 Answers
- Newest
- Most votes
- Most comments
0
Hello.
We have confirmed that triggers other than CloudFront can be set for Lambda functions for Lambda@Edge as shown below.
Also, it can be called from the AWS CLI as shown below, so I think it is possible to execute Lambda@Edge from the API with boto3 etc.
aws lambda invoke --function-name cloudfronttest:1 outputfile.txt
{
"StatusCode": 200,
"FunctionError": "Unhandled",
"ExecutedVersion": "1"
}
By the way, is there any reason not to create another Lambda function?
I think it's easier to manage if you separate Lambda functions by purpose.
0
"By the way, is there any reason not to create another Lambda function?" What do you mean by this? We need the same application code to be run from different locations.
answered 7 months ago
Is there a way to control which Edge will be run? If not - is there any logic by which an Edge is selected?
"By the way, is there any reason not to create another Lambda function?" What do you mean by this? We need the same application code to be run from different locations.