Deploying a NetBeez Cloud Agent in Amazon Web Services (AWS) Elastic Compute Cloud (EC2) lets you monitor VPC workloads, Direct Connect / Transit Gateway routing, and multi-region SaaS performance continuously. You can deploy an AWS EC2 agent either on a standard Debian 12 or Ubuntu 22.04 EC2 instance using the NextGen Cloud Agent installer or by launching an instance from the NetBeez Community AMI.
In this article:
Prerequisites and Security Group Requirements
AWS Account & Permissions: Permission to launch EC2 instances, attach a VPC subnet, and configure EC2 Security Groups in your target AWS region.
Recommended Instance Sizing:
t3.small,t3.medium, ort2.medium(adjust vCPU and memory upward if scheduling concurrent high-throughput Iperf or Network Speed tests).Security Group Rules: Allow inbound SSH (TCP port
22) from your administrative bastion/IP during setup, and allow outbound HTTPS/WebSocket connectivity to your NetBeez NextGen server plus ICMP/TCP/UDP traffic to your monitored targets (see Network Firewall Settings).NetBeez Server Secret Key: Sign in as an Administrator to copy your Server Secret Key from Settings → Information & Health (under Server Information) or view pre-populated commands directly in Agents → Network Agents → Install Network Agent → Cloud (see Secret Key).
Method 1: Deploy on Debian 12 or Ubuntu 22.04 EC2 (Recommended)
The built-in NextGen Cloud Agent deployment workflow installs the NetBeez cloud sensor package on a fresh 64-bit Debian 12 or Ubuntu 22.04 EC2 instance:
In the AWS Management Console, open Services → Compute → EC2 → Launch instance.
Enter an instance name, select an official 64-bit Debian 12 or Ubuntu Server 22.04 LTS AMI, choose an instance type (such as
t3.smallort2.medium), select your SSH Key pair, configure VPC/subnet and Security group settings, and click Launch instance.Connect to the running EC2 instance over SSH.
Download the NetBeez cloud deployment script:
curl -O https://netbeez-public.s3.amazonaws.com/agent_artifacts/agent_deploy.sh
Copy the exact
sudo env ...command from Agents → Network Agents → Install Network Agent → Cloud in your NextGen dashboard (when signed in as an Administrator, your Server Secret Key and current artifact URL are pre-filled automatically), or substitute<secret_key>from Settings → Information & Health:sudo env URL="https://netbeez-public.s3.amazonaws.com/agent_artifacts/nbagent_cloud_61c27f3a_15.2.2.tar.gz" SECRET="<secret_key>" bash agent_deploy.sh && sudo bash /usr/local/netbeez/agent_cleanup.sh
Method 2: Launch from the NetBeez Community AMI
You can also launch an EC2 instance directly from the published NetBeez Community AMI:
Log in to the AWS Management Console and navigate to Services → Compute → EC2.
In the left EC2 navigation pane, click AMI Catalog, select the Community AMIs tab, search for
NetBeez, and click Select on the NetBeez AMI.Click Launch Instance with AMI.
Name the instance, choose a recommended instance type (such as
t2.mediumort3.medium), select your SSH Key pair (login), configure VPC and Network settings, and click Launch instance.SSH into the EC2 instance once its status checks pass.
Run the NetBeez agent setup commands using the Server Secret Key copied from Settings → Information & Health (or from Agents → Network Agents → Install Network Agent):
curl -L -O https://raw.githubusercontent.com/netbeez/agent-installation/master/agent_setup.sh sudo bash agent_setup.sh --secret=<secret_key>
Verifying the Agent and Preserving Existing UUIDs
Dashboard Verification: Within moments of running the deployment script, open Agents → Network Agents in your NetBeez NextGen dashboard to confirm the EC2 agent is reachable, inspect its Agent Details, and assign Agent Groups, Targets, and Scheduled Tests.
Replacing a Terminated EC2 Agent (Preserving UUID): If you are replacing a terminated or disconnected cloud instance and want the new EC2 instance to inherit its historical data and assignments, copy the disconnected agent's UUID from its Agent Details card and pass
UUID="<existing_agent_uuid>"in the Cloud Agent deployment command (see Replacing an Agent while Preserving its UUID):sudo env URL="..." SECRET="<secret_key>" UUID="<existing_agent_uuid>" bash agent_deploy.sh && sudo bash /usr/local/netbeez/agent_cleanup.sh
