Accessing Object Storage in AWS


This tutorial demonstrates how to access your AWS S3 from Neuro Platform. You will set up a new Neuro project, create an S3 bucket, and make it is accessible from Neuro Platform jobs.

Make sure you have CLI installed.

Creating Neuro Project

To create a new Neuro project, run:

neuro project init
cd <project-slug>
make setup

Creating an AWS IAM User

Follow Creating an IAM User in Your AWS Account.

Briefly, in AWS Console, go to "Services" drop-down list, "IAM" (Identity and Access Management). On the left-hand panel choose "Access management" -> "Users", click the blue button "Add user", go through the wizard, and as a result you'll have a new user added:

Ensure that this user has "AmazonS3FullAccess" in the list of permissions.

Then, you'll need to create an access key for the newly created user. For that, go the user description, tab "Security credentials", press button "Create access key":

Put these credentials to the local file in home directory ~/aws-credentials.txt, for example:


Set appropriate permissions to the secret file:

chmod 600 ~/aws-credentials.txt

Set up Neuro Platform to use this file and check that Neuro project detects the file:

neuro secret add aws-key @~/aws-credentials.txt

Next, open Makefile and find the following line in it:


And replace the line with that one:

SECRETS?="-v secrets:aws-key:/var/secrets/aws.txt -e AWS_CONFIG_FILE=/var/secrets/aws.txt"

Creating a Bucket and Granting Access

Now, create a new S3 bucket. Remember: bucket names are globally unique.

aws s3 mb s3://$BUCKET_NAME/


Create a file and upload it into S3 Bucket:

echo "Hello World" | aws s3 cp - s3://$BUCKET_NAME/hello.txt

Run a development job and connect to the job's shell:

export PRESET=cpu-small # to avoid consuming GPU for this test
make develop
make connect-develop

In your job's shell, try to use's 3` to access your bucket:

aws s3 cp s3://my-neuro-bucket-42/hello.txt -

To close the remote terminal session, press ^D or type exit.

Please don't forget to termin