Integration with AWS S3

What You'll Need

Backbench account - Sign Up, the personal account will always remain free to use.

Amazon Web Services account - Sign Up, create an account, create an IAM user on IAM panel, generate AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

Prerequisites for the app

  1. Set the above generated keys along with AWS_DEFAULT_REGION with their values as an evironment variable.

AWS_ACCESS_KEY_ID	xxxxxxx
AWS_SECRET_ACCESS_KEY	xxxxxxxxx	 
AWS_DEFAULT_REGION	us-east-1

Operation 1: Listing all files along with metadata in a storage bucket of AWS S3.

Backend

  1. Select +, in the upper right corner to create a Module. For example, say "Listing_objects.js" and select CREATE or hit Enter.

  2. Copy and paste the code module from below.

  3. Replace BUCKET NAME and BUCKET KEY in the code.

  4. Select save.

Operation 2: Uploading file in a storage bucket.

Backend

  1. Select +, in the upper right corner to create a Module. For example, say "Uploading_object.js" and select CREATE or hit Enter.

  2. Copy and paste the code module from below.

  3. Replace BUCKET NAME and BUCKET KEY in the code.

  4. Select save.

Operation 3: Deleting a file in a storage bucket.

Backend

  1. Select +, in the upper right corner to create a Module. For example, say "deleting_object.js" and select CREATE or hit Enter.

  2. Copy and paste the code module from below.

  3. Replace BUCKET NAME and BUCKET KEY in the code.

  4. Select save.

Last updated