- Introduction
- Log in to Amazon Web Services
- Create the AWS service in Cerb
- Use the connected account in bot behaviors
- Related guides
Introduction
In this guide we’ll walk through the process of linking Cerb to Amazon Web Services (AWS). You’ll be able to use any AWS API from bots in Cerb.
Log in to Amazon Web Services
We’ll start by logging in to the AWS Management Console.
If you don’t have an AWS account, you can sign up for free at: https://aws.amazon.com
Create a new user
We’re going to create the new user account for our Cerb bot to use.
If you haven’t already selected the IAM service, do so now.
Select Users in the left navigation.
Click the blue Add user button at the top of the page.
Type Cerb
in User name.
In Access type, check Programmatic access.
Click the blue Next: Permissions button in the bottom right.
Create a policy
At the top, select Attach existing policies directly.
Click the Create policy button at the top.
Select the JSON tab.
Paste the following policy:
{
"Version": "2018-12-18",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "iam:GetUser",
"Resource": "arn:aws:iam::*:user/${aws:username}"
}
]
}
You can add new permissions here depending on the services your bot needs to access. This is covered in those specific guides.
Click the Review Policy button in the lower right.
- Name:
CerbBot
Click the Create Policy in the lower right.
Select the policy.
Click the blue Next: Tags button in the bottom right.
Finish up
Click the blue Next: Review button in the bottom right.
Verify the new user and click the blue Create user button in the bottom right.
Click the Download .csv button to save a copy of your new credentials. You’ll need these in a moment when adding a new connected account in Cerb.
That’s everything we need to do in AWS. You can close the AWS Management Console.
Create the AWS service in Cerb
-
Navigate to Search » Connected Services.
-
Click the (+) icon in the top right of the list.
-
Select Amazon Web Services.
-
Enter your Access Key and Secret Key from AWS.
-
Click the Create button.
Use the connected account in bot behaviors
You can use the connected account you just created to access AWS APIs from bot behaviors in Cerb. This is typically accomplished using the Execute HTTP Request action from a bot, and selecting the connected account in the Authentication: section.