enum BundlingFileAccess
Language | Type name |
---|---|
![]() | Amazon.CDK.BundlingFileAccess |
![]() | github.com/aws/aws-cdk-go/awscdk/v2#BundlingFileAccess |
![]() | software.amazon.awscdk.BundlingFileAccess |
![]() | aws_cdk.BundlingFileAccess |
![]() | 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
Name | Description |
---|---|
VOLUME_COPY | Creates temporary volumes and containers to copy files from the host to the bundling container and back. |
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 . |
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
.