Amazon Web Services (AWS)
This app allows you to synchronize your AWS assets into Badrap and receive security notifications about them. The app needs to be installed and enabled under your Badrap user account to get started. The app fetches a list of your organization's public IP addresses from your AWS installation with your consent, and adds those assets under your Badrap user account. Below, we describe the actions needed in Badrap. We also explain what you need to do in AWS to grant the minimum permissions for Badrap to fetch the public IP addresses.
Install the AWS app in Badrap
- Open the AWS app page.
- Install the app.
- Take note of the External ID value that the app has generated for you. You'll need this later.
Create Required AWS Role & Policy
Setting up the Badrap app with Amazon Web Services requires configuring role delegation using AWS IAM.
Create a new role in the AWS IAM console.
Select
Another AWS account
for the role type.Enter
808384617942
(Badrap's Account ID) as theAccount ID
.Check the
Require external ID
option, and enter the External ID that the app generated for you earlier as theExternal ID
.Leave the
Require MFA
option unchecked.Click
Next: Permissions
.If you've already created a policy, skip the following substeps. Otherwise click
Create Policy
, which opens a new window.- Select the
JSON
tab and enter the following policy snippet into the text box:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "VisualEditor0", "Effect": "Allow", "Action": [ "ec2:DescribeInstances", "lightsail:GetInstances", "route53:GetHostedZone", "route53:ListHostedZones", "route53:ListResourceRecordSets", "route53domains:ListDomains" ], "Resource": "*" } ] }
- Click
Review policy
. - Name the policy (e.g.,
BadrapAppPolicy
). - Click
Create policy
- Return to the
Create role
window. - Refresh the list of policies
- Select the
Select the BadrapAppPolicy
Click
Next: Tags
.Click
Next: Review
.Name the role (e.g.,
BadrapAppRole
).Click
Create role
.
Finish the Installation
- Return to the AWS app page.
- Enter your AWS Account ID into the
Account ID
field. - Enter the name of the AWS role you created earlier. Note that the role name is case sensitive!
- Click
Add
.
Uninstalling the app
If you want to stop using the Badrap AWS app, you can uninstall it from your Badrap AWS app page.
Then you can clean up the app role and policy definitions from your AWS IAM console.
- Under the Roles section, search for the role you created earlier (e.g. "BadrapTestAppRole") and select Delete.
- Under the Policies section, search for the policy you created and connected to the role (e.g. "BadrapTestAppPolicy"), and from the Policy actions drop-down menu select Delete.
That's it, you have successfully uninstalled the Badrap AWS app and cleaned up its configuration from your AWS installation.