2023-Nov-03-R11.1a

Configuring EC2 Role for NetBrain Front Server in AWS Gateway Account

This section illustrates how to create a role for an EC2 instance in the gateway account using the AWS console. This will allow the EC2 instance that hosts NetBrain system to access the monitored accounts.

  1. Go to Roles in Identity and Access Management (IAM) and create a new role.
  2. Select AWS service and EC2 for this role.
  3. Enter the role name (NetbrainAccessRoleForEC2).
    Information

    Note: The role name shall match the one you previously picked when configuring the trusted relation in the monitored account.

  4. Skip the Permissions (policy) section in the wizards. The policy will be added later.  
  5. After the role is successfully created, open the role and attach an inline policy to allow the EC2 instance to assume NetbrainAccessRole in monitored accounts.

    Graphical user interface, text, application, email  Description automatically generated 

    A sample policy JSON is as follows.
    Information Note: Use the account ID to monitor your environment.

    Code
    {
    "Statement": [
    {
    "Resource": [
    "arn:aws:iam::<12-digit monitored account number>:role/<role created in previous step (NetbrainAccessRole)>"
    ],
    "Action": [
    "sts:AssumeRole"
    ],
    "Effect": "Allow"
    }
    ],
    "Version": "2012-10-17"
    }

6. Find the EC2 instance where you run NetBrain Front Server, and attach the role to it. You can also specify the role when first launching an EC2 instance.