Cerb + Amazon Web Services
- Introduction
- Log in to Amazon Web Services
- Create the AWS service in Cerb
- Use the connected account in automations
- Related resources
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 automations 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
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.
Create a policy
Select Policies in the left navigation.
Click the Create policy button at the top.
Select the JSON tab.
Paste the following policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "CerbIam",
"Effect": "Allow",
"Action": "iam:GetUser",
"Resource": "arn:aws:iam::*:user/${aws:username}"
}
]
}
You can add new permissions here depending on the services your automation needs to access. This is covered in those specific guides.
Click the Next button in the lower right.
Use the policy name: CerbAutomationsPolicy
Click the Create Policy button in the lower right.
Create a new user
Select Users in the left navigation.
Click the orange Create user button in the top right of the page.
Type CerbAutomations
in User name.
Click the orange Next button in the bottom right.
At the top, select Attach existing policies directly.
Select CerbAutomationsPolicy.
Click the Next button in the lower right.
Click the Create user button in the lower right.
Generate programmatic credentials
Click on CerbAutomations in the users list.
Select the Security credentials tab.
In the Access Keys section, click the Create access key button near the middle of the page.
Select Other and click the Next button in the lower right.
Click the Create access key button in the lower 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.
Click the Done button.
That’s everything we need to do in AWS.
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 automations
You can use the connected account you just created to access AWS APIs from automations in Cerb. This is typically accomplished using the http.request command from an automation and referencing this connected account in the authentication: option.