If you run into the following error there are two steps we can take to mitigate this error that do not involve modifying/replacing the #current-cloud-backend.zip
archive in your deployment bucket.
🛑 An error occurred during the push operation: /
EEXIST: file already exists, symlink '../ulid/bin/cli.js' -> '/myproject/amplify/.temp/#current-cloud-backend/function/somelayer/lib/nodejs/node_modules/.bin/ulid'
In your file explorer perform the following:
- delete the
node_modules
folder of the affected layer (using the example above,rm -rf amplify/#current-cloud-backend/function/somelayer/lib/nodejs/node_modules
)