Installing the Host Agent on Amazon Elastic Compute Cloud (Amazon EC2)

Monitor AWS EC2 instances

For detailed information about AWS EC2 monitoring, see our AWS EC2 documentation and our blog post.

Linux

  1. Sign in to Instana and click More -> Agents -> Instana agent installation -> AWS.
  2. From the Technology list, select Elastic Computing (EC2) - Linux.

    Your agent key and location are pre-populated in the script.

  3. Copy and use the script shown as User Data. THe script will look like the one below, but pre-filled with your agent key and host agent endpoint:

    #!/bin/bash
    
    curl -o setup_agent.sh https://setup.instana.io/agent && chmod 700 ./setup_agent.sh && \\
    sudo ./setup_agent.sh -a <your-agent-key> -t dynamic -e <host-agent-endpoint> -s -y

The script above is based on the agent one-liner script for Linux, and it can be easily modified to accommodate a number of additional parameters as described in the Additional One-Liner parameters documentation.

For more information on how to use the install script with User Data in AWS EC2, see the AWS documentation.

Windows

  1. Sign in to Instana and click More -> Agents -> Instana agent installation -> AWS.
  2. From the Technology list, select Elastic Computing (EC2) - Windows.

    Your agent key and location are pre-populated in the address.