How to
How to set up Activity Sync from Pendula to an AWS S3 bucket
Activity sync provides a range of information about the performance of messages as they pass through your Pendula tenant. This information can be used in external systems for analytics and reporting, by connecting to the activity sync stream.
This article shows how to connect an activity sync stream from your Pendula tenant to Amazon Kinesis, and how to store that stream in an S3 bucket.
Prerequisites:
- Requires Administrator login to your AWS environment
- The Amazon Kinesis package must be enabled for your Pendula tenant
How to connect activity sync to Amazon Kinesis and S3
-
Log into your AWS Account.
-
As an Administrator, open the Management Console.
-
Search for “Kinesis” and select “Kinesis - Work with Real-Time Streaming Data”.
-
Click Create data stream.
-
Enter a Data stream name. NOTE: The Data stream name is used as the
streamName
when deploying a Pendula Activity Sync resource, later in this procedure. -
Click Create data stream.
-
Copy the ARN value, so you can reference it in your policy.
-
Search for “IAM” and select “IAM - Manage access to AWS resources”.
-
In the IAM management screen, click Policies.
-
Click Create policy.
-
In the Policy editor, click the JSON button.
-
Paste the following JSON:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "PendulaAccess", "Effect": "Allow", "Action": [ "kinesis:GetRecords", "kinesis:GetShardIterator", "kinesis:ListShards", "kinesis:PutRecord", "kinesis:PutRecords" ], "Resource": "Paste ARN Here" } ] }
-
Paste the ARN for your stream into the
Resource
field. -
Click Next.
-
Enter a Policy name and optionally, a Description, then click Create Policy.
-
In the IAM management screen, click Users.
-
Click Create user.
-
Enter a User name, then click Next.
-
Select Attach policies directly, and select the policy you just created.
-
Click Next.
-
Click Create user.
-
Select the user you just created.
-
Click Create access key.
-
Select Third-party service.
-
Select the Confirmation check box.
-
Click Next.
-
Click Create access key.
- Select Third-party service as the Use case.
- Click Next.
- Enter a Description.
- Click Create access key.
-
Copy and save the Access Key ID and Secret Access Key in a secure place. These credentials will be used when setting up your connection in Pendula.
-
Click Done.
-
Search for and select “S3” to create an S3 bucket.
-
Click Create bucket.
-
Enter a Bucket name and adjust settings as required for your environment, then click Create bucket.
-
Search for “Firehose” and select “Amazon Data Firehose”.
-
Click Create Firehose stream.
-
Select Amazon Kinesis Data Streams as the Source, and Amazon S3 as the Destination. Additional fields will appear after you select these.
-
In the Source settings Kinesis data stream field, select the Kinesis stream you created in step 4.
-
In the Destination settings S3 bucket field, select the bucket you created in step 32.
-
Adjust the remaining settings as required for your environment, then click Create Firehose stream.
Your Kinesis stream is now configured.
You can now set up your Amazon Kinesis connection inside your Pendula tenant.
How to connect your Pendula tenant activity sync to AWS Kinesis
After configuring your AWS Kinesis stream and S3 bucket, you can connect your Pendula tenant.
- Log into your Pendula tenant.
- Select the Integrations page.
- In the Setup connection section, click Amazon Kinesis.
- Enter a Name for the connection.
- Enter a Description for the connection to make it easy to identify.
- Paste your AWS Access Key ID and AWS Secret Access Key into the fields.
- Click Save connection.
To start data streaming from Pendula, contact your Pendula representative with the name of your Kinesis data stream and the API name from your tenant connection, so they can enable the stream for your environment.