CallN can integrate with AmazonS3 buckets to directly import audio files for advanced analytics. The process of importing audio files from Amazon is built on best practice security measures. These involve:
- Setup of an IAM role that trusts a third party entity being CallN
- Setup of an IAM policy that gives access to the S3 bucket
- Provision of temporary session tokens that expired based on a duration setting. For further information see the amazon documentation as below.
See AmazonS3 Integration section below:
AMAZON S3 INTEGRATION GUIDE
CallN can automatically grab audio files from an S3 bucket for advanced analytics. To enable this process a number of steps need to be setup to ensure your bucket is protected and secure.
CREATE AN IAM POLICY
- Go to AWS services and select IAM
- Go to Policies and Create a new policy
- Go to the JSON tab and add in the JSON as defined below. Remember to replace the string “bucket-name” with your bucket name.
- Review and Save the Policy. Give it a name like “CallNBucketAccessPolicy” for easier reference.
CREATE AN IAM ROLE
- Go to Roles on the IAM Service page
- Create a new role and select the trusted entity type of “Another AWS account”
- Fill in the Account ID with the CallN AccountId: 461631519711
- Select Options/Require External ID and type “calln”
- Go to the Permissions step and select the policy you created on the previous step.
- Go to Tags(leaver empty) and then to the “Review” stage
- Add in a role name and description. A name could be “CallNBucketAccessRole”
CREATE AN IAM ROLE SESSION DURATION
- Click on the Role and edit the “Maximum CLI/API session duration”. Make this “12 hours” and it will ensure the download process can occur without interruption.
CALLN ACCOUNT SETTINGS
From your CallN Portal, select Manage Account from the upper right.
Select Amazon S3 from the left side menu.
Enter in your S3 Bucket Name.
Input your AmazonS3 IAM Role ARN. This can be found on the Amazon IAM roles page.
Select your AmazonS3 Region.
The Filename Regex field specifies how to interpret the file name on file found in the bucket. An example would be the following:
This would be looking for a file name similar to 202001011500451234567898765432.mp3 where the call occurred on 1st January 2020 at 3:00:45pm. The callers phone number is 12345678 and the destinations phone number is 98765432.
Hit the apply button and this will verify your settings are correct.