- Login to your AWS Primary Account.
- Go to Amazon Web Services.
- Sign in using the AWS Primary Account.
- Configure an IAM policy.
- In the Amazon Web Services Console, go to the IAM service.
- In the left navigation pane, click Policies.
- If this is your first time on this page, you'll need to click Get Started.
- Click Create policy.
- Select the JSON tab.
- Copy the following JSON code into the text box:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "cloudconnector", "Action": [ "ec2:DescribeImages", "ec2:DescribeInstances", "ec2:DescribeRegions", "ec2:DescribeSubnets", "ec2:DescribeTags", "ec2:DescribeVpcs", "ec2:DescribeAvailabilityZones", "ec2:DescribeSecurityGroups", "workspaces:DescribeWorkspaces", "workspaces:DescribeWorkspaceDirectories", "workspaces:DescribeWorkspaceBundles", "workspaces:DescribeTags", "iam:ListAccountAliases", "iam:GetRole", "iam:GetRolePolicy", "sts:AssumeRole" ], "Effect": "Allow", "Resource": "*" } ] }
- Create an IAM user with an access key ID and secret.
- Go to the IAM service > Users > Add user.
- Enter a user name. Example: Deep_Security_IAM_User.
- For Access type, select Programmatic access.
- Click Next > Permissions and then click the Attach existing policies directly box.
- Find the IAM policy you just created and select the check box next to it.
- Click Next > Review > Create user. Your access key ID and secret access key are shown in the table.
- Copy the access key ID and secret access key to a safe location. You'll need them later.
- Add the access key to the manager.
- Log in to Deep Security Manager and click Administration at the top.
- Click System Setting on the left, then click the Advanced tab in the main pane.
- Scroll to the bottom and look for the Manager AWS Identity heading.
- Next to Access Key - The Access Key of an AWS User used for the manager identity, enter the access key of the IAM user you created previously.
- Next to Secret Key - The Secret Access Key of an AWS User used for the manager identity, enter the secret key of the IAM user that you created previously.
- Click Save.
- Add your AWS Primary Account and its access key to the manager.
- Login to the Deep Security manager console.
- Click Computers > Add > Add AWS Account.
- Select Use AWS Access Keys.
- Enter your AWS Primary Account's IAM user Access Key ID and Secret Access Key that you created previously.
- If your AWS Primary Account includes Amazon WorkSpaces, select Include Amazon WorkSpaces to include them with your Amazon EC2 instances. By enabling the check box, you ensure that your Amazon WorkSpaces appear in the correct location in the tree structure in Deep Security Manager and are billed at the correct rate.
- Your AWS Primary Account's Amazon EC2 instances and Amazon WorkSpaces are loaded.
- After completing the above tasks, proceed to Install the agent on your Amazon EC2 and WorkSpace instances if you have not done so already.
Reference: https://help.deepsecurity.trendmicro.com/20_0/on-premise/aws-add-access-keys.html