Aiven Amazon S3 Sink Connector allows you to continuously store the data from
your Kafka Topics in Amazon S3. In this guide, we will walk you through creating
a Amazon S3 Sink Connector.
If you already have a Amazon S3 environment with the following information, skip
this step and continue from the Create The Connector
section. Note that the user with the given access keys, should have permission
to modify the given bucket.
aws.access.key.id
aws.secret.access.key
aws.s3.bucket.name
aws.s3.region
Go to AWS S3 Console Create or select a
bucket. Note that this bucket name will be used later to configure the
connector.
To make this guide simple, we will allow public access to this bucket(not
recommended in production).
You can disable public access and allow only following IP’s coming from Upstash
:
Aside from bucket name and public access changes, default configurations should
be fine for this guide.Next, we will create a user account with permissions to modify S3 buckets Go to
AWS IAM , then “Access Management” and
“Users”. Click on “Add Users”.
Give a name to the user and continue with the next screen.
On the “Set Permissions” screen, we will give the “AmazonFullS3Access” to this
user.This gives more permissions than needed. You can create a custom policy with
following json for more restrictive policy.
After creating the user, we will go into the details of that user to create a
key. Click on the user, then go to the “Security Credentials”. An the “Access
Keys” section, click on the “Create access key” button.
We will choose “Application running outside AWS” and create the access key.
Don’t forget to store access key id and secret key. We will use these two when
creating the connector.
Go to the Connectors tab, and create your first connector by clicking the New
Connector button.
Choose your connector as Aiven Amazon S3 Connector
Enter the required properties.
The advanced screen is for any other configuration that the selected connector
supports. At the top of this screen, you can find a link to related
documentation. We can proceed with what we have and click the Connect button
directly.
Congratulations! You have created an Aiven Amazon S3 Sink Connector.As you put data into your selected topics, the data will be written into Amazon
S3. You can see the data coming from your related bucket in the Amazon Console.