Installing the Host Agent on Amazon Elastic Compute Cloud (Amazon EC2)
TABLE OF CONTENTS
Monitor AWS EC2 instances
For detailed information about AWS EC2 monitoring, see our AWS EC2 documentation and our blog post.
Linux
- Sign in to Instana and click More -> Agents -> Instana agent installation -> AWS.
-
From the Technology list, select Elastic Computing (EC2) - Linux.
Your agent key and location are pre-populated in the script.
-
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
- Sign in to Instana and click More -> Agents -> Instana agent installation -> AWS.
-
From the Technology list, select Elastic Computing (EC2) - Windows.
Your agent key and location are pre-populated in the address.