Connecting to S3¶
Anaconda Enterprise enables you to connect to Amazon Simple Storage Service (S3) object storage service, to access data stored there.
Before you can do so, however, you’ll need to install the s3fs
package, which contains the Python filesystem interface required to connect to S3:
NOTE: Any packages you install from the command line are available during the current session only. If you want them to persist, add them to the project’s anaconda-project.yml
file. For more information, see Developing a project.
You can then use code such as this to access a specific S3 bucket from within a notebook session:
Credentials would need to be in .ini
format and look like the following:
See Storing secrets for information about adding credentials to the platform, to make them available in your projects. Any secrets you add will be available across all sessions and deployments associated with your user account.