Install the DeepScan Scaleout access role¶
Note
Required role: account_admin
TrustSource reaches your AWS account through two IAM roles that you install once:
- EACG-OS-Creator: only TrustSource can assume it, and only with your ExternalId. It can create, update and delete the stack
EACG-OutScalerand read what the connection test needs. - EACG-OS-CloudFormation: CloudFormation uses it to create the resources of the stack. Its permissions are limited to resources named
EACG-OutScalerorEACG-OSand to the region.
Neither role can read or change your other resources. The roles themselves cost nothing.
Before you start¶
- An AWS account for the scale-out. We recommend a separate account.
- An IAM user or SSO role in that account that may create IAM roles and CloudFormation stacks.
- In DeepScan Scaleout → AWS access, enter the 12-digit AWS account ID and select Save. The page shows the ExternalId and the files to download. The section also shows this guide with your values filled in.
Option A: CloudFormation (recommended)¶
- Sign in to the AWS console with your account and switch to the scale-out region (default
eu-central-1). - Select Launch in AWS console. Or go to CloudFormation → Create stack → With new resources → Upload a template file and choose the downloaded
eacg-scaleout-access-v<version>.yaml. - Enter the stack name
EACG-OS-Access. Check that the parameter ExternalId shows the value from TrustSource. - Select I acknowledge that AWS CloudFormation might create IAM resources with custom names and create the stack.
- Wait for
CREATE_COMPLETE, then run the connection test in TrustSource.
Option B: AWS CLI¶
You need the AWS CLI v2 and credentials for the account.
- Select Download CLI bundle.
- Check the account:
aws sts get-caller-identity --query Account --output textmust print your account ID. - Unzip the bundle:
unzip eacg-scaleout-cli-v<version>.zip -d eacg-scaleout && cd eacg-scaleout - Run
./client-iam.sh add --external-id <ExternalId> --region <region>and confirm withy. TrustSource shows this command with your values and a copy button. - Run the connection test in TrustSource.
Option C: Manual setup (JSON)¶
- Download the four JSON files.
- In IAM → Roles → Create role, choose Custom trust policy and paste the EACG-OS-Creator trust policy.
- Skip the permissions, name the role exactly
EACG-OS-Creator, add the tageacg:policy-versionwith the policy version TrustSource shows, and create the role. - Open the role, select Add permissions → Create inline policy, switch to JSON, paste the EACG-OS-Creator permissions and save the policy as
EACG-OS-Creator. - Repeat steps 2 to 4 for
EACG-OS-CloudFormation. - Run the connection test in TrustSource.
Remove everything¶
First switch Use for DeepScans off and remove the scale-out environment in TrustSource. Then delete the stack EACG-OS-Access, or run ./client-iam.sh remove.
Warning
When you select Regenerate for the ExternalId, the installed role stops working until you install it again with the new value.