https://exceptiondecoded.com/posts/aws-cloudfront-testfunctionfailedexception/
Troubleshooting CloudFront: Unveiling the TestFunctionFailedException - Exception Decoded