BundlingFileAccess

class aws_cdk.BundlingFileAccess(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

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

ExampleMetadata:

infused

Example:

go.GoFunction(self, "GoFunction",
    entry="app/cmd/api",
    bundling=go.BundlingOptions(
        bundling_file_access=BundlingFileAccess.VOLUME_COPY
    )
)

Attributes

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.