×
×
×
×

Install Agents in AWS Instances

This document covers steps to install agents at AWS Instances

How to install agent in AWS instance?

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

  1. Create an S3 Bucket in the region where 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 an IAM role for SSM.
    • In the IAM console, navigate to Roles > Create Roles.
    • In Select type of trusted entity, choose AWS service.
    • Select the service EC2.
    • If the specified service has only one use case, it is selected automatically. Then 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 shown in the figure below), search for AmazonEC2RoleForSSM and select it.

    Agent Installation - AWS Instances

    Note
    You can also add AmazonEC2RoleForSSM to an 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 Systems Manager console, choose Run Command.
    • Run the following command:
    Command
     
                                    New-Item -ItemType directory -Path C:LocalOfficelocalsetup 
    $WebClient = New-Object System.Net.WebClient
    $WebClient.DownloadFile("BUCKETPATH/UEMSAgent.msi", "C:LocalOfficelocalsetupUEMSAgent.msi")
    $WebClient.DownloadFile("BUCKETPATH/UEMSAgent.mst", "C:LocalOfficelocalsetupUEMSAgent.mst")
    $WebClient.DownloadFile("BUCKETPATH/setup.bat", "C:LocalOfficelocalsetupsetup.bat") cmd /c msiexec /i C:LocalOfficelocalsetupUEMSAgent.msi REBOOT="REALLYSUPPRESS"
    MSIRESTARTMANAGERCONTROL="Disable"
    TRANSFORMS=C:LocalOfficelocalsetupUEMSAgent.mst ENABLESILENT=yes /qn
    Note
    Replace BUCKETPATH with the actual object URL.

You have now successfully installed agents in AWS Instances.