AWS S3
Supported URL formats
Earthscale supports S3 URLs formatted like:
s3://{bucket_name}/{path_to_files_that_can_contain_glob_patterns}
Values in curly brackets are placeholders.
Security
Earthscale uses OpenID Connect (OIDC) to securely access your cloud data using dedicated per-customer service accounts. This eliminates the need to share credentials while providing fine-grained access control over your cloud resources. It also lets you revoke access at any time if necessary.
Granting Access
To grant Earthscale read-only access to an S3 bucket:
Open Earthscale
Click on the user icon in the top-right corner of the left sidebar
Click "Cloud Access"

Enter the bucket name you want to share and click the "Copy"
button at the top-right corner.

Execute the command in your CLI or send the instructions to the responsible administrator in your organization.
Use the AWS Console
If you do not have access to the CLI or want more control, you can use the AWS Console to grant us access to a bucket.\
Open Earthscale
Click on the user icon in the top-right corner of the left sidebar
Click "Cloud Access"

On the "Amazon Web Services (AWS)" tab you can see the principal id we use to access data for your organization (there is one per customer)
Click the copy button next to it or copy it manually

Navigate to the bucket you want to share on the AWS Console
Click the "Permissions" tab
Locate the "Bucket policy" section
Click the "Edit" button in this section

This opens the policy editor. Copy this JSON and paste it into a local text editor (Visual Studio Code or Notepad, for example):
{ "Sid": "AllowEarthscaleAccess", "Effect": "Allow", "Principal": { "AWS": "{YOUR_PRINCIPAL}" }, "Resource": [ "arn:aws:s3:::{YOUR_BUCKET_NAME}", "arn:aws:s3:::{YOUR_BUCKET_NAME}/*" ], "Action": [ "s3:GetObject", "s3:GetBucketLocation", "s3:ListBucket" ] }
Replace the text
{YOUR_PRINCIPAL}
with the principal copied from EarthscaleReplace the text
{YOUR_BUCKET_NAME}
with the bucket name you want to share (copy it from the AWS console to be safe from typos)Careful, this occurs twice, once it is trailed by
/*
and once it is not
Copy the modified entry from your text editor
Append it to the end of the statement list in the AWS Console policy editor
The policy likely contains other statements. Make sure to not delete or modify any existing ones. Just append to the end. If you are unsure at any point, do not edit the policy, and ask your administrator or contact us on Slack or email
Finally, do not forget to click "Save changes":

From now on, you should be able to add any datasets in this bucket to Earthscale using their s3://
URLs!
Creating a new bucket
If you'd prefer to grant Earthscale access to a brand new bucket, you can follow the AWS guide to create one. Then, follow the instructions above to grant Earthscale access to that bucket.
Last updated