downloadable digital assets shopify digital product delivery app logo

How to Connect Your S3 Server

configure custom s3

Cloudflare R2

Amazon S3

DDA allows you to attach your own Amazon S3 server. Doing this allows you to have full control over your storage and bandwidth settings. This means that you will be in control of the pricing for those settings too, while our app is simply the control tool between your store and your server.

If you’re selling large digital files on Shopify, then this is one of the best routes to take.

Il s'agit de paramètres avancés. Ne les modifiez que si vous êtes familier avec AWS et S3.

De quel plan ai-je besoin pour cette fonctionnalité ?

You will need the Growth plan or above. Already installed DDA? Upgrade here.

En connectant votre propre S3, vous contrôlez les coûts de stockage et de bande passante via votre compte Amazon.

How to do it

Étape 1 - Allez à la page "Paramètres".

Une fois que vous êtes sur la page "Paramètres", cliquez sur le bouton "Configurer le S3 personnalisé".

configure custom s3

About the settings

Rename my files to keep their name unique?

This will rename files that are uploaded with the same name as other files in your S3, so they don’t overwrite the files.

The names will be renamed with a completely different names of random characters using UUID4. This is a time-based encoding.

Delete files in S3 when removed from the App?

Enabling this setting will delete the files from your S3 if you delete the files inside the app. If you leave it disabled, then deleting the files in our app will not do anything to your S3 files.

Étape 2 - Créer un seau

Allez sur AWS et créez votre godet. Entrez un nom de godet et une région.

créer un seau aws

Étape 3 - Configurer le seau, copier et coller CORS

If you are using AWS, go to the Permissions tab > scroll down to CORS and click ‘Edit‘.

Copy the CORS config text from the DDA S3 page in the app, and paste it into your S3 settings.

cors

Collez la configuration CORS dans le champ ci-dessous, puis cliquez sur "Enregistrer les modifications" :

image

Step 4 – Set up API access to the bucket & assign permissions

Ajoutez un utilisateur pour générer vos clés API.

ajouter un utilisateur

Attribuez à l'utilisateur les autorisations nécessaires pour gérer le seau S3.

attribuer des permissions

There have been reports that AWS has changed the way permissions are assigned to a user, which could be more complicated.

Étape 5 - Copier et coller les clés API dans l'application

Vous recevrez des clés API :

copie api

Copy and paste the Key and the Secret from AWS to the DDA app.

  1. The ‘Access key ID‘ goes into ‘Access Key
  2. The ‘Secret access key‘ goes into ‘Secret Key‘.
key

Étape 6 - Copier et coller les détails du seau

Trouvez le nom du seau et la région dans l'URL (soulignés en rouge ci-dessous) puis copiez-les dans l'application.

région de copie

Paste them as instructed. Numbers are located in the image above:

  1. The bucket name (1) goes into ‘Bucket
  2. The region (2) goes into ‘Region

Ensuite, appuyez sur "Enregistrer".

Étape 7 - Test de téléchargement

Vous devez tester le chargement d'une ressource en allant sur la page "Ressources" et en cliquant sur "Charger une nouvelle ressource".

Si tout se télécharge sans avertissement ni problème, c'est que vous avez réussi. Si vous obtenez des erreurs, vérifiez à nouveau les étapes pour vous assurer que vous avez tout fait correctement.

Assurez-vous que le fichier a été téléchargé en vérifiant dans votre seau S3.

FAQ

What happens if I disconnect the S3 from the app?

If you disconnect the S3, the files will still appear in the app. To completely remove the files from the app, you will need to highlight them all from the Assets page and remove them.

Please check if you had enabled the option “Delete files in S3 when removed from the App?” when you originally connected it because the app may delete all of your files from the S3 if you have this enabled.

Can I change the S3?

Yes, all you need to do is disconnect the old one and then reconnect the new S3. All of your files from the old S3 will still remain in the account.

If you want to remove the old files, you need to go to the “Assets” page, select them all and click remove. You can do this after you have connected the new S3. Just make sure that you will be able to distinguish which file is on the right S3. It would be easy to tell if you checked the “Created” date on the “Assets” page. This will filter the list to show the newest or oldest first.

Lire la suite