Install and manage agents for EC2 instances
Follow the steps in this section to install Network Flow Monitor agents for workloads on Amazon EC2 instances. Installing agents requires two steps: first, configure permissions to allow the agents to send metrics to the Network Flow Monitor backend, and then install the agents using one of the available methods.
Regardless of the method that you use to install agents on EC2 instances, you must configure permissions for the agents to enable them to send performance metrics to the Network Flow Monitor backend.
Step 1: Configure permissions
Before installing agents, set up the required IAM permissions. See Configure permissions for agents.
Step 2: Install agents
Choose one of the following methods to install the Network Flow Monitor agent on your EC2 instances:
Install agents via CloudShell script – The fastest way to install agents. Select your instances in the Network Flow Monitor console and run an automated script in .
Install agents by using CDK – Use Amazon Cloud Development Kit (Amazon CDK) to install agents as part of your infrastructure-as-code deployment.
Install agents using SSM – Use Amazon Systems Manager Distributor to install and manage agents from the console.
Download and install the agent from the command line – Download prebuilt RPM or DEB packages and install them directly on your instances.
Install agents using Amazon CLI with SSM commands – Use the Amazon Command Line Interface to send SSM commands to install and activate agents.