Onboard an AWS Organization with CloudFormation templates

After Cloud Security is deployed, you’re ready to start harvesting data from AWS, which requires securely connecting your Amazon Web Services (AWS) Accounts and Organizations to the Rapid7 Command Platform.

As visibility into your cloud accounts improves and your inventory grows, you can then begin to leverage the rest of Cloud Security, including Insights, Bots, Layered Context, and more.

You can configure and generate a custom CloudFormation template StackSet using Cloud Security. You can then manually deploy the CloudFormation template StackSet in your AWS Console to provision the necessary AWS resources required for Rapid7 to collect data from your unique environment. If you would prefer an alternative onboarding method, see the AWS Overview and Support.

Opening the Cloud Account Onboarding Interface

Before you can begin the onboarding process, you’ll need to navigate to the Cloud Account Onboarding interface, which provides a different experience depending on the type of user you are:

User Description Experience

First-time User

Cloud Security is freshly deployed and this will be the first time a Cloud Service Provider (CSP) has been onboarded.

Platform Users: Onboarding wizard launched from Platform Home by clicking the Cloud Security tile.

Cloud Security Only Users: The onboarding wizard appears automatically after logging in using your unique Cloud Security URL.

Returning User

Cloud Security has one or more CSPs already onboarded and you would like to add a new account.

Launched from within Cloud Security. Not a wizard.

Admin User

You can log in to the cloud provider and have the appropriate access to grant Cloud Security access to your account(s).

As an admin, you will need to complete some specific tasks within your Cloud Service Provider’s (CSP) console to generate details needed for onboarding that either you or a non-admin user can input to Cloud Security.

Non-Admin User

You can interact with Cloud Security and would like to onboard an account(s) but do not have the appropriate CSP access to grant Cloud Security access to your account(s).

You will need to copy and send a message to the admin asking them to complete specific tasks and provide you with the information you need to complete onboarding.

Onboarding an AWS Organization

A couple of methods for onboarding your AWS accounts are available depending on whether you’re a non-admin or admin user.

Resuming cloud onboarding to Cloud Security

If you close the interface before completing Account onboarding, you can resume onboarding from the page you were on last.
Success! You onboarded an Account

Congratulations on successfully onboarding an AWS Account! Cloud Security will now detect the following:
  • If there are any missing permissions that could cause impaired visibility into your Account
  • Assuming you completed the Organization-related portion of the onboarding, if the Account is an AWS Organization Account, you can enable Account Discovery. If Account Discovery is enabled, Rapid7 can onboard and collect information on related AWS Organizations and Accounts via the onboarded Tenant. Click Enable Auto Discovery at the bottom of the window to start this process.
For information about modifying an existing onboarded account, check out the Set up and manage cloud accounts page.

Organization Post-Onboarding Information

If you followed the instructions above and onboarded an AWS Organization, you should have at least your Organization account with full visibility in Cloud Security. Review the following sections for more information on augmenting your Organization onboarding experience or managing the Organization within Cloud Security.

Enabling Account Discovery

Once an Organization is onboarded to Cloud Security, Rapid7 automatically detects the Organization and prompts you to enable Account Discovery. If you clicked the Enable Auto Discovery button within the onboarding wizard, you’ll be taken to the Edit Organization Config window for the new Organization.

  1. From the Edit Organization Config window, select Auto-Sync Accounts.
  2. Click Update.
Access account discovery settings after onboarding

Account discovery settings are also available from Data Connectors > Cloud Accounts > Organizations.

Once enabled, accounts are dynamically discovered by the API using the default configurations you set.

Modifying an AWS Organization in Cloud Security

After onboarding an AWS Organization, you can edit account discovery and configuration details at any time, including auto-removing suspended or deleted accounts, adjusting import scope, or updating credentials.

  1. Go to Data Connectors > Cloud Accounts > Organizations.
  2. Click Action next to the organization you want to modify.
  3. Click Manage Organization.

Auto-badging

As an enhancement to support for provider-based organizations, Cloud Security includes auto-badging capabilities. The purpose of auto-badging is to create a 1:1 map of AWS account-level tags to Badges in Cloud Security. This allows Clouds to be scoped to a badge that maps to the account tag.

Accounts added via an AWS Organization will also have a few Cloud Security-based Badges automatically associated to them:

  • cloud_org_path: shows the location of the account in the Organization tree

Despite not being listed explicitly, the system.cloud_organization:<cloud_org_id> badge is associated with all accounts in an Organization.

After the tags and labels are harvested into Cloud Security as badges, you cannot delete them in Cloud Security. They must be deleted in AWS, and the changes will propagate to Cloud Security.

Auto-badging takes place in two stages.

Stage Description

Retrieves tags and labels from each account and project and compares them with ResourceTags associated with the cloud account in the Cloud Security database.

If there are any changes detected, the ResourceTags in the database are overwritten with the values from the account/project. This means that Cloud Account tags should not be locally modified since any local changes will be overwritten the next time the process runs. Additionally, any local changes that are made to Cloud Account tags are not pushed back up to the cloud provider.

Retrieves tags and labels from each account and project and compares them with ResourceTags associated with the cloud account in the Cloud Security database.

For each cloud the list of tags for that cloud is compared with the current list of Badges and for each Key/Value pair of tags:

  • Existing Badges with a Key prefix of system. are skipped.
  • If the corresponding Badge with the Key/Value pair for that cloud does not already exist, it is created.
  • If a tag Value changes, the Badge with the corresponding Key will be updated to that value.
  • If a Badge no longer has a tag with a corresponding Key, it will be deleted.
  • All Badges that have a corresponding tag will have their autogenerated column set to ‘true’ even if they were previously set to ‘false’.

Changes to Credential Management

Because all accounts within the AWS Organization use the same credential configuration, they are considered “managed” by the organization. This is reflected on the cloud settings page where the option to edit credentials and delete the account are not available.