AWS Freemium IAM Role Integration

Auto-discover Applications and AWS Resources

Rapticore Integrates with customer’s AWS environments using readonly IAM Roles added to customer AWS accounts.

📘

For more information on these roles and AWS integration, refer to our AWS integration reference.

Setup

To simplify setup, we provide CloudFormation templates in YAML formats to facilitate IAM Role creation.

Setup involves:

  1. Configuring AWS Accounts with readonly IAM Roles
  2. Configuring Rapticore to integrate with those AWS Accounts

Necessary privileges in AWS

An IAM User or Role with privileges to create and update IAM roles in all target customer AWS accounts can complete the setup steps.

Customer AWS AccountId

At the time of account creation, will provide customers with the AWS AccountId attribute.

  • RapticoreAccountId - Customer AWS Account ID where Rapticore Freemium is hosted

Rapticore privileges

You must have an Admin role to configure AWS integrations in Rapticore.

AWS Account Configuration

Option 1 - AWS Console Setup

  1. Download the CloudFormation Template as a .yaml file
  2. Log into your target account AWS Management Console with permissions to create IAM Roles
  3. Go to the CloudFormation Service and click the "Create stack" button on the top right corner of the screen
  4. Select "Template is Ready" and then Select "Upload a template file"
  5. Choose the YAML file you downloaded and click “Next”
  6. Enter a Friendly Name for the stack, e.g., Rapticore-cloud-extractor-role-stack
  7. Enter RapticoreAccountId, Customer AWS Account where Rapticore Freemium is hosted
  8. Click “Next” and add any tags you may desire
  9. Click "Next" Review Details and select the acknowledgment checkbox once in agreement.
  10. Click “Create stack” and review the progress
  11. Once the stack is created, click the Outputs tab and copy, and save for later, the created IAM Role ARN

📘

You will want to keep track of the associated AWS Account the IAM Role was created in for a the Rapticore Configuration step.

Repeat the process for all the AWS Accounts you wish to integrate with Rapticore.

Option 2 - AWS CLI Setup

  1. Configure your AWS CLI and profiles for the accounts you wish to integrate with Rapticore according to AWS Documention.
  2. Clone Rapticore's aws-onboarding repository from Github
git clone [email protected]:rapticore/aws-onboarding.git && \
cd aws-onboarding
cd freemium
  1. Set your AWS Profile and account attributes replacing <...> with appropriate values:
export RAPTICORE_ACCOUNT_ID=<RapticoreAccountId> && \
export AWS_PROFILE=<PROFILE NAME>
  1. Create the IAM Role CloudFormation Stack
aws cloudformation deploy \
  --profile $AWS_PROFILE \
  --region us-east-1 \
  --template-file ./IAMRoleFreemiumCrossAccountStack.yaml \
  --stack-name Rapticore-cloud-extractor-role-stack-$RAPTICORE_TENANT_ID \
  --parameter-overrides \
    RapticoreAccountId=$RAPTICORE_ACCOUNT_ID \
  --tags Name=aws-discovery \
  --capabilities CAPABILITY_NAMED_IAM
  1. Confirm the creation of the read-only IAM Role
aws cloudformation describe-stacks \
  --profile $AWS_PROFILE \
  --region us-east-1 \
  --stack-name Rapticore-cloud-extractor-role-stack-$RAPTICORE_TENANT_ID \
  --query "Stacks[*].Outputs[?OutputKey=='IAMRoleARN'].OutputValue" \
  --output text
  1. Copy and save Role ARN

📘

You will want to keep track of the associated AWS Account the IAM Role was created in for a the Rapticore Configuration step.

Repeat the process for all AWS Accounts you wish to integrate with Rapticore.

Rapticore Configuration

  1. Login to Rapticore as an admin user and navigate to the Manage > Integrations page and select the AWS integration.
11991199

Option 1 - Single Account Integration

  1. Click New AWS Account
11971197
  1. Enter a name of your choosing for your account and enter the IAM Role ARN associated with that AWS account and click Save.
11991199
  1. Add the account names of your choosing and the the corresponding IAM Role ARNs, and upload the bulk template.

📘

Having configured AWS integration, auto-discovery of resources will be scheduled. Once run, you will be able to view these records in Rapticore.

28722872

Decommissioning

Deleting an integrated AWS Account from Rapticore or deleting the IAM Role from the AWS account will stop Rapticore from monitoring that account.

🚧

Changing the Role Policy might adversely affect Rapticore data collection and operations.