Installing the host agent on Amazon Elastic Compute Cloud (Amazon EC2)
To install the host agent on Amazon Elastic Compute Cloud (Amazon EC2), follow the steps.
Linux®
-
Sign in to Instana UI, and click More > Agents > Instana agent installation > AWS.
-
From the Technology list, select Elastic Computing (EC2) - Linux.
Note: Your agent key and location are pre-populated in the script.
-
Copy and use the script that is shown as User Data. The script looks as follows, but pre-fill the script swith 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 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 about how to use the installation script with User Data in AWS EC2, see the AWS documentation.
Windows®
-
Sign in to Instana UI, and click More > Agents > Instana agent installation > AWS.
-
From the Technology list, select Elastic Computing (EC2) - Windows.
Note: Your agent key and location are pre-populated in the address.
Monitor AWS EC2 instances
For detailed information about AWS EC2 monitoring, see AWS EC2 documentation and blog post.