Mount¶
- class lightning.app.storage.mount.Mount(source='', mount_path='')[source]¶
Bases:
object
Allows you to mount the contents of an AWS S3 bucket on disk when running an app on the cloud.
- Parameters:
source¶ (
str
) – The location which contains the external data which should be mounted in the running work. At the moment, only AWS S3 mounts are supported. This must be a full s3 style identifier pointing to a bucket and (optionally) prefix to mount. For example: s3://foo/bar/.mount_path¶ (
str
) – An absolute directory path in the work where external data source should be mounted as a filesystem. This path should not already exist in your codebase. If not included, then the root_dir will be set to /data/<last folder name in the bucket>