Skip to main content

Amazon S3

This guide contains information to set up a S3 Source in Vanus Connect.

Introduction

S3 is Amazon's cloud storage service that offers scalable and durable storage for various data types. It provides easy management and retrieval of data from anywhere with high availability and low latency.

Vanus Connect provides the Amazon S3 Source connector, which retrieves S3 events from a designated bucket and converts them into CloudEvents. With this connector, users can also set up an SQS queue to receive S3 event notifications. If a queue isn't specified, the connector will create one automatically.

Prerequisites

Before obtaining S3 events, you must have:

Getting Started

Step 1: Create a new AWS user

  1. Log in to the AWS Management Console using your root account credentials.

  2. Navigate to the IAM service by searching for IAM① and click the IAM② service.

aws-s3-source-1

  1. Click on the Users③ tab in the left navigation menu, and then click the Create user④ button.

aws-s3-source-2

  1. Write your User name⑤ and click Next⑥.

aws-s3-source-3

  1. Select Attach policies directly⑦, and click on Create policy⑧.

aws-s3-source-4

  1. Click on Choose a service⑨ to open the dropdown menu.

aws-s3-source-5

  1. Search⑩ for s3 and click on it⑪.

aws-s3-source-6

  1. Search for the following policy: PutBucketNotification⑫, and tick the box⑬ to select it.

aws-s3-source-7

  1. Click Add more permissions⑭.

aws-s3-source-8

  1. Now search for SQS⑮ and click on it⑯.

aws-s3-source-9

  1. Search⑰ for the following policies.

aws-s3-source-10

  • ListQueues
  • GetQueueUrl
  • ReceiveMessage
  • GetQueueAttributes
  • CreateQueue
  • SetQueueAttributes
  • DeleteMessage
  1. Press Next⑱ and proceed to the next page.

aws-s3-source-11

  1. Name⑲ your policy.

aws-s3-source-12

  1. Click Create policy⑳.

aws-s3-source-13

  1. Return back to your previous TAB.

aws-s3-source-14

  1. Refresh㉒ the policy list, search㉓ for your custom policy, check the box㉔ next to it to add it to your account, and then click on Next㉕.

aws-s3-source-15

  1. Review and press Create user㉖.

aws-s3-source-16


Step 2: Create an Access key and Secret access Key

  1. Now click on the user① you just created.

aws-s3-source-17

  1. Under Security credentials② scroll down the page to Access Keys, and Click Create access key③.

aws-s3-source-18

  1. Select Command Line Interface (CLI)④, tick the Confirmation box⑤ and click Next⑥.

aws-s3-source-19

  1. Click Create access key⑦.

aws-s3-source-20

  1. Download your Access key and Secret access key by clicking the Download .csv file⑧ button, and then click Done⑨.

aws-s3-source-21


Step 3: Amazon S3 Connection Settings

  1. Write a Name① for your connection in Vanus Connect.

aws-s3-source-22

  1. Enter your Access Key and Secret access Key in Vanus Connect.

aws-s3-source-23

  1. Navigate to the Amazon S3 service.
note

At this point, you can either Create a new bucket or select an existing bucket.

  1. Create a new bucket by clicking the Create bucket④ button.

aws-s3-source-24

  1. Specify a Bucket name⑤ and select your desired AWS Region⑥.

aws-s3-source-25

  1. Click on Create bucket⑦ to finish creating your bucket.

aws-s3-source-26

  1. Once selected or created, click on the bucket name⑧.

aws-s3-source-27

  1. Go to your bucket Properties⑨ and copy the ARN⑩.

aws-s3-source-28

  1. Paste your Bucket ARN⑪ into vanus connect, Specify the kind of Events⑫ you want to receive from the list.

aws-s3-source-29

note

Under SQS config⑬, you can choose to create a new SQS by selecting region, or if you already have an SQS, provide the ARN.

  1. Set your desired SQS Region⑭ and click Next⑮ to continue the configuration.

aws-s3-source-30


Learn more about Vanus and Vanus Connect in our documentation.