aws-cdk-lib.BundlingFileAccess

enum BundlingFileAccess

LanguageType name
.NETAmazon.CDK.BundlingFileAccess
Gogithub.com/aws/aws-cdk-go/awscdk/v2#BundlingFileAccess
Javasoftware.amazon.awscdk.BundlingFileAccess
Pythonaws_cdk.BundlingFileAccess
TypeScript (source)aws-cdk-lib » BundlingFileAccess

The access mechanism used to make source files available to the bundling container and to return the bundling output back to the host.

Example

new go.GoFunction(this, 'GoFunction', {
 entry: 'app/cmd/api',
 bundling: {
      bundlingFileAccess: BundlingFileAccess.VOLUME_COPY,
  },
});

Members

NameDescription
VOLUME_COPYCreates temporary volumes and containers to copy files from the host to the bundling container and back.
BIND_MOUNTThe source and output folders will be mounted as bind mount from the host system This is faster and simpler, but less portable than VOLUME_COPY.

VOLUME_COPY

Creates temporary volumes and containers to copy files from the host to the bundling container and back.

This is slower, but works also in more complex situations with remote or shared docker sockets.


BIND_MOUNT

The source and output folders will be mounted as bind mount from the host system This is faster and simpler, but less portable than VOLUME_COPY.