-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[aws-lambda-nodejs] .parcel-cache permission denied in BitBucket Pipelines #9312
Comments
Hi @SergKam, Have you tried playing with the |
@jogold No, but I found a workaround for now. I'm creating directory |
I am also running into this issue and unable to upgrade my cdk version from 1.36.1 to 1.58.0. I tried couple of previous versions to upgrade but the issue is been there for quite some time. Please some one help, what is the work around on this, I tried providing the 777 permission to both .cdk.staging and .parcel-cache folders and deleted these folders before running the synth. Still getting the same error. Bundling asset hello-world-dev-ApiDynamoDbStack/dlqS3UtilFunction/dlqS3UtilFunction/Code/Stage... |
@anilchinnam In my case, I'm using docker to build and deploy lambdas with cdk.
aws cdk uses another docker image with "parcel" inside to build lambda, and inside this "parcel docker" it uses a user with user id 1000. ps: my setup only works up to cdk version 1.54 (i cannot upgrade because another issue #9351) |
@SergKam Thank you for the response. Any input on the folder structure or documentation for building multiple lambdas in a project is helpful for us to upgrade until 1.54 version. Thanks Again. |
So, not sure if it helps anyone else, but I found I was having this similar issue. I had a direct "dependency" in my package.json to parcel and parcel-bundler. Removing those (and a Hope that helps someone else. |
☝️ This helped me fix my problem as well. To be clear I have to run |
I am using
Also, I have |
@rv-rmiranda can you share your folder structure and also how you're instantiating the |
What's the reason |
Folder Structure
Lambda Stack:
Please, let me know if you need anything else. Thank you! |
Are you using the docker executor or machine executor? https://support.circleci.com/hc/en-us/articles/360007324514-How-can-I-use-Docker-volume-mounting-on-CircleCI and https://circleci.com/docs/2.0/executor-types/#using-machine |
@jogold — I was using Working Code
Not Working Code
Thank you for the help! |
Should we add a note in our docs? |
@jogold As far as I know, there is no option in bitbucket pipelines to switch to anything else except Docker |
Replace Parcel with esbuild for bundling. esbuild offers [impressive performances](https://esbuild.github.io/) compared to Parcel. Moreover everything can be configured via the CLI. This means that we don't need to play with the user `package.json` file anymore. Add full Windows support for local bundling. Refactor and clean-up. Closes #10286 Closes #9130 Closes #9312 Resolves #11222 BREAKING CHANGE: local bundling now requires `esbuild` to be installed. * **lambda-nodejs**: `projectRoot` has been replaced by `depsLockFilePath`. It should point to your dependency lock file (`package-lock.json` or `yarn.lock`) * **lambda-nodejs**: `parcelEnvironment` has been renamed to `bundlingEnvironment` * **lambda-nodejs**: `sourceMaps` has been renamed to `sourceMap`
|
Bitbucket Pipeline failed to create NodejsFunction in docker. When I attempt to create a lambda using that construct and synthesize, I get an error [Error: EACCES: permission denied, mkdir '/asset-input/.parcel-cache']
Reproduction Steps
The handler a bit complex to show here, but it is irrelevant.
Error Log
Environment
Other
looks related to #8757
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: