Sensor on AWS ECS using Terraform
Install on AWS ECS using Terraform
Prerequisites
Before installing the Sensor on AWS ECS, ensure you have:
- Access to AWS ECS
- Terraform CLI installed
1. Create a Task Definition
Download the
Loading...
file.
Run the following command in the same directory:
terraform apply
Enter the Collector URL as prompted to create a task definition in your AWS account.
2. Run the Sensor
Now that the task definition is created, start the Sensor as a service in an ECS cluster:
- Open the levo-satellite task definition and click on the latest revision
- Navigate to Deploy and select Create Service
- Choose the cluster where you want to deploy the Satellite
- Under Compute Options, select Launch Type as FARGATE. If you have requirements for EC2 nodes, refer to the pcap-sensor documentation
- Leave other configurations at their default settings and start the service
3. Verify Connectivity with Satellite
a. Check Sensor Health
Check the Sensor's health by verifying the task status in the AWS ECS console.
If the Sensor is healthy, the task should show a Running status:
status
Running
b. Check Connectivity
Navigate to the logs for the Sensor's task. If connectivity is healthy, you should see output similar to the following:
2022/06/13 21:15:40 729071 INFO [ebpf_sensor.cpp->main:120] Initial connection with Collector was successful.
Please contact support@levo.ai if you encounter health or connectivity errors.
If there are no errors, proceed to the next step.