Closed garritfra closed 1 year ago
After way too much trial and error I finally identified the problem.
The creation CloudFormation::Function
fails with a cryptic error (Invalid request provided: AWS::CloudFront::Function: null
), but the status code of 409
(Conflict
) gives it away. There was already a CloudFormation Function. Deleting it solved the issue.
I ran into this because I had two monorepos forked from the same source and both had "app" as the construct name for the website (as is in the example) and that was creating the same Logical ID on both stacks used for the function. Very confusing and not obvious behavior.
constructs: {
app: {
type: 'single-page-app',
path: '../app/dist'
}
},
Description
Hi, I'm currently deploying a Laravel application. When trying to integrate static assets using lift, I get the following error:
Any hints about what could cause this?
How to Reproduce
Additional Information
Versions of the serverless plugins:
And serverless itself: