aws-cloudformation-user-guide icon indicating copy to clipboard operation
aws-cloudformation-user-guide copied to clipboard

Cloudfront Function FunctionConfig is required to deploy

Open woodworker opened this issue 3 years ago • 0 comments

The documentation states that FunctionConfig is optional/not required but when i want to deploy a function i get a very unhelpful error and a failed deployment

Resource handler returned message: "null" (RequestToken: xxx-xxx-xxx-xxx-xxx, HandlerErrorCode: InternalFailure)

In https://github.com/awsdocs/aws-cloudformation-user-guide/blob/main/doc_source/aws-resource-cloudfront-function.md it is stated that FunctionConfig is not required is. As there is also the FunctionCode as not required marked is this an dependency? As in if there is FunctionCode given you also MUST give a FunctionConfig? If yes, this should also be noted in the documentation.

woodworker avatar May 10 '22 15:05 woodworker