dvc-s3 is a plugin for Data Version Control (DVC) that enables storing and retrieving data, models, and pipelines from Amazon S3. It integrates seamlessly with DVC's CLI and API to manage datasets on S3. The current version is 3.3.0, and it follows a minor release cadence driven by DVC's core development.
pip install dvc dvc-s3No compatibility data collected yet for this library.
This quickstart demonstrates how to initialize a DVC project, configure an S3 remote, add a data file to DVC, and push it to your S3 bucket. Ensure you have `dvc` and `dvc-s3` installed, and your AWS credentials (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) and desired S3 bucket name (DVC_S3_BUCKET) are set as environment variables.
If you need `boto3` for other reasons in your environment, install it separately: `pip install boto3`.
Always install `dvc-s3` alongside `dvc` using `pip install dvc dvc-s3` to ensure the S3 remote is available.
Ensure AWS credentials are correctly configured via environment variables, AWS shared credentials file, or IAM roles. Verify the S3 bucket exists and DVC has appropriate permissions (read/write access).
Upgrade `s3fs` by running `pip install --upgrade s3fs`.
After adding your remote, use `dvc remote modify <remote_name> region <your_region>` (e.g., `dvc remote modify my_s3_remote region us-east-1`).
Install 'boto3' using pip: 'pip install boto3'.
Ensure that 'dvc push' has been executed from the original project, and try 'dvc pull' again.
Modify the code to avoid calling 'getvalue()' on 'S3File' objects, or use a different method to retrieve the file content.
Run 'dvc push' to upload the cache to the remote, then try 'dvc pull' again.
Increase the open file descriptors limit using 'ulimit -n 1024' on UNIX-like systems, or reduce the number of parallel jobs in DVC commands.