aws-lambda-python-alpha: Default Bundling File Access is not correct. #27352
Labels
@aws-cdk/aws-lambda-python
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
The problem is simple. The default BundlingFileAccess is NOT set to BundlingFileAccess.VOLUME_COPY. Instead, it is set to BIND_MOUNT.
I understand this was done for performance, but compatability beats performance. Everyone using docker-in-docker via vscode .devcontainers gets errors during the build process. That is a lot of people spending hours trying to figure out strange file permission errors.
Expected Behavior
The default should be set to BundlingFileAccess.VOLUME_COPY.
Current Behavior
The default is set to BIND_MOUNT which does not cover many developers dev environment.
Reproduction Steps
This problem occurs in any docker-in-docker. It is even mentioned in a README.md somewhere.
Possible Solution
Change the default in bundling.ts, or even in core.
Additional Information/Context
In essence, docker-in-docker is a popular way to work via vscode. It is popular enough that the BundleFileAccess option default needs to be changed.
CDK CLI Version
2.96.2 (build 3edd240)
Framework Version
No response
Node.js Version
v20.7.0
OS
CentOS
Language
Python
Language Version
Python 3.10
Other information
No response
The text was updated successfully, but these errors were encountered: