Custom asset bundling for lambda using docker results in output code that is owned by root #8489
Labels
@aws-cdk/core
Related to core CDK functionality
bug
This issue is a bug.
in-progress
This issue is being actively worked on.
needs-triage
This issue or PR still needs to be triaged.
The custom asset bundling feature released in v1.45 -(#7898) results in output from the docker image that is owned by root (or the user that executes the commands in the docker container in general).
This is unexpected, and could be a problem if a user does not have root access on the machine to clean up the cdk.out folder.
Reproduction Steps
Error Log
executing
ls -la
in the output folder yeilds the following as an exampleEnvironment
Other
As per discussion on #7898, passing
-u $UID:$UID
as part of dockerArgs inpackages/@aws-cdk/core/lib/bundling.ts
might be the solution.This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: