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 > Computers > Download Agent
  3. Upload Localagent.exe 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/UEMSAgent.msi","LOCALPATH/UEMSAgent.msi") $WebClient.DownloadFile("BUCKETPATH/UEMSAgent.mst","LOCALPATH/UEMSAgent.mst") $WebClient.DownloadFile("BUCKETPATH/setup.bat","LOCALPATH/setup.bat") cmd /c msiexec /i C:\\LocalOffice\\localsetup\\UEMSAgent.msi REBOOT="REALLYSUPPRESS" MSIRESTARTMANAGERCONTROL="Disable" TRANSFORMS=C:\\LocalOffice\\localsetup\\UEMSAgent.mst ENABLESILENT=yes /qn

You have now successfully installed Agents in AWS instances.