Closed coderpradp closed 2 years ago
I forgot to modify the bucket name in serverless.yml
. Bucket name needs to be unique.
I have the same problem, but I do not want to change the name of the bucket every single time that I deploy, how can I fix this problem?
Hi @richardvaldivieso, thank you for your interest in my project!
you shouldn't need to change the service name with every deploy (unless you want to deploy multiple sites), the issue described above is caused by 2 factors,
Once the static assets bucket has been created then serverless should not try and recreate it and instead should just deploy your assets to the existing bucket.
Thanks James
SvelteKit: 1.0.0-next.348 @yarbsemaj/adapter-lambda: 0.9.1
Copied serverless.yml as is from this repo to root directory. Build was successful however I'm getting
Error: CREATE_FAILED: StaticAssets (AWS::S3::Bucket)
on deploy. Tried removing everything (serverless remove
) and deploying again but same error.Here are some logs if it helps: