Bulk Installation of Agents in AWS Instances

The following are the steps to install agents in bulk in AWS Instances

  1. Create S3 Bucket in the region you want to deploy the Agents.
  2. In the product web console, navigate to the Agent tab > Agent Installation > Other methods > AWS Instances > Download Agent
  3. Upload all files from the downloaded Agent zip folder to the created bucket and set the permission as public.
  4. Create IAM role for SSM.
    • In the IAM console navigate to Roles --> Create Roles.
    • In the Select type of trusted entity, choose AWS service.
    • Choose the service EC2.
    • If the specified service has only one use case, it is selected automatically after which choose NEXT: Permissions.
    • Note: Use cases are defined by the service to include the trust policy that the service requires.
    • In the Create role window as given in the figure below, search for AmazonEC2RoleForSSM and select it.
    • Agent Installation-AWS instances

      Note: You can also add AmazonEC2RoleForSSM in the already existing IAM role.

    • Choose NEXT: Review.
  5. Change EC2 settings.
    • Select the existing instance.
    • Choose Action at the top of the screen.
    • Choose Instance settings and assign the created role.
  6. Run the command to install the agents in AWS Instances.
    • In the AWS System Manager console, choose Run Command
    • Run the following command :
    • Note: BUCKETPATH is object URL.
      New-Item -ItemType directory -Path C:\\LocalOffice\\localsetup
      $WebClient.DownloadFile("BUCKETPATH/DesktopCentralAgent.msi","LOCALPATH/DesktopCentralAgent.msi") $WebClient.DownloadFile("BUCKETPATH/DesktopCentralAgent.mst","LOCALPATH/DesktopCentralAgent.mst") $WebClient.DownloadFile("BUCKETPATH/setup.bat","LOCALPATH/setup.bat") cmd /c msiexec /i C:\\LocalOffice\\localsetup\\DesktopCentralAgent.msi REBOOT="REALLYSUPPRESS" MSIRESTARTMANAGERCONTROL="Disable" TRANSFORMS=C:\\LocalOffice\\localsetup\\DesktopCentralAgent.mst ENABLESILENT=yes /qn

You have now successfully installed Agents in AWS instances.