Skip to main content

S3 Upload Object Event triggers a Slack message

S3 is one of the most popular services provided by Amazon Web Services.

S3 service allows the user to store objects through a web service interface.

This guide will help you get a Slack notification whenever a new object gets uploaded to your S3 service.

Get Started

Step 1: Configure the Source

  • Log in to Vanus Connect and choose the S3 Upload Object Event triggers a Slack message template.

Step 2: Get Access key

1.png

  • Go to Users on the left sidebar and click on Add User.

2.png

  • Give a name to the user and click on Next.

3.png

  • Select Attach policies directly and click on Create Policy.

4.png

  • Click on S3 and search for PutBucketNotification and select it.

5.png

6.png

  • Click on Add more permissions and search for SQS and click on it.

7.png

  • Now search these policies and add them:
  1. ListQueues
  2. GetQueueUrl
  3. ReceiveMessage
  4. GetQueueAttributes
  5. CreateQueue
  6. SetQueueAttributes
  7. DeleteMessage

and press Next.

8.png

  • Add a name to your policy and click on Create Policy.

9.png

  • Go back to the previous tab and refresh it.

  • Search for the custom policy we have created and select it and click Next.

10.png

  • Review it and click Create User.

11.png

  • Click on the created user and go to the Security and Credentials tab.

12.png

  • Scroll down and click Create access key.

13.png

  • Select Command line interface CLI, press Next and click Create access key.

14.png

  • Copy the access key and secret access key and paste them into the Connection setup.

15.png

Step 3: Create ARN number

  • Go to the AWS console and search for S3 service and click on it.

16.png

  • Click on Create New bucket.

17.png

  • Give a name to the bucket and click Create Bucket.

18.png

  • Open the created bucket and go to properties tab.

19.png

  • Copy the ARN Number and paste it into the connection setup and click Next.

Step 4: Configure Sink - Get the Discord Webhook URL

  • Open Slack API in your browser, create a Webhook URL and copy it.

Tip: For detailed steps on how to obtain the Slack Webhook URL, refer to the blog Get Your Slack Webhook URL - A Quick Integration Guide.

  • Paste the copied URL in the Webhook URL in the Sink Configuration and click Submit.

  • Your connection has been successfully created.