Skip to navigation

AWS: Install Eon Sensor on Linux

Who can use this feature

Anyone with these permissions: View source connections, Manage backup policies

Install Eon Sensor on a Linux EC2 instance so that each high-frequency backup saves only the blocks that changed since the last backup. For what Eon Sensor is and how it works, see AWS: About Eon Sensor.

This article explains how to turn on Eon Sensor in your AWS account, install it on your Linux EC2 instances, and assign the instances to a high-frequency backup policy.

Install Eon Sensor on your instances

Before you start

Before you install Eon Sensor, make sure:

  • Your EC2 instances run Linux on x86-64 (amd64) with systemd and the distribution’s stock kernel. ARM-based (Graviton) instances aren’t supported. Supported distributions:

    • Debian 12 or newer.

    • Ubuntu 20.04 or newer, with the Hardware Enablement (HWE) kernel.

    • Amazon Linux 2023.

    • Red Hat Enterprise Linux, Rocky Linux, or AlmaLinux 8.6 or newer.

    • SUSE Linux Enterprise Server 15 SP4 or newer.

  • Your AWS account is connected to Eon, and EC2 backup is turned on for it. To connect the account, see AWS: Connect Source Accounts.

  • Your account’s permissions version is 2.0.0 or later (earlier versions don’t have the parameter for Eon Sensor).

  • Each instance has outbound access, in the instance’s own AWS region, to Amazon S3 (access points), Amazon SQS, Amazon DynamoDB, and AWS Security Token Service (STS). The access can go over the internet or through VPC endpoints. The instance needs no inbound access.

  • Each instance can reach the instance metadata service (IMDSv2). Keep the metadata hop limit at its default of 1.

  • You have permissions to update CloudFormation stacks or apply Terraform in the AWS account, and to attach IAM policies to instance roles. You also have root or sudo access on each instance.

1

Turn on Eon Sensor and attach its policy

Turn on Eon Sensor in the source account stack that connects your AWS account to Eon. The parameter for Eon Sensor is also in the organization and multi-account versions of the stack.

In the CloudFormation console, set the parameter for Eon Sensor to true in that stack. Leave the other parameters unchanged. When the stack status is UPDATE_COMPLETE, the update is done.

The update creates these resources:

  • The managed IAM policy for Eon Sensor. The stack outputs the policy’s ARN.

  • An instance profile and the IAM role it holds, for instances that have no IAM role. The instance profile’s ARN is in the EonSensorProfileArn stack output (Terraform: eon_sensor_profile_arn).

Then give every instance that will run Eon Sensor access to the policy:

  • For an instance that has an IAM role, attach the policy to that role.

  • For an instance that has no IAM role, attach the instance profile from the EonSensorProfileArn output.

2

Install Eon Sensor on each instance

  1. Go to the AWS source accounts page, and expand your AWS account.

  2. Under Account configuration, open the actions menu (Actions) for Eon Sensor, and click View install command. The Install the Eon Sensor dialog opens. It shows the install command, the name of the policy to attach (Instance role policy), and the Scanning account ID.

  3. Make sure Linux is selected, and copy the command. The command includes your Eon project ID and the ID of the scanning account, which is the Eon AWS account that processes your backups. The same command works for every instance in your AWS account, in every region.

  4. Connect to each instance, and run the command as root or as a user with sudo access.

    You can download the installer and the package directly on the instance, or provide them by another method your network allows. To download them directly, make sure the instance can reach assets.public.eon.io over HTTPS (port 443).

    The installer installs the package, runs preflight checks, and starts the service for Eon Sensor.

    You can also run the same command from EC2 user data or AWS Systems Manager Run Command. It needs no prompts.

If the installer stops with an error, fix the problem it reports and run the command again. Running it again is safe.

To replace the saved configuration, for example after an installation with an incorrect ID, run the command again with --force-config added at the end. The end of the command then looks like this:

... sh "$f" --force-config
3

Verify the installation

On each instance, run these commands.

  1. Run the preflight checks. The command prints one line for each check and exits with a non-zero code if a check fails. Until Eon enrolls the instance, the preflight can print one or two warnings that the instance is not yet enrolled. These don’t fail the run.

    sudo eon-shoval preflight
  2. Check the status of Eon Sensor. The command shows the version, the enrollment state, and the volumes that Eon Sensor tracks.

    sudo eon-shoval ctl status

In the status output, enrollment: not yet enrolled (queue does not exist) means Eon hasn’t enrolled the instance, and enrollment: enrolled means it has. Before you assign the instance to a high-frequency backup policy, not yet enrolled is expected. Right after the service starts, enrollment can show unknown (no poll yet). Run the command again in a minute.

If a check fails, the output names the check and the fix. Apply the fix, and run the command again.

4

Assign the instances to a high-frequency backup policy

Eon enrolls an instance (starts using Eon Sensor for it) only after you assign the instance’s EC2 resource to a high-frequency backup policy. Installing Eon Sensor alone doesn’t enroll the instance. If a high-frequency backup policy already includes your instances, you don’t need to assign them again.

  1. In the Eon console, go to Inventory and select the EC2 instances that run Eon Sensor.

  2. Click Actions, and then click Assign to backup policy. The Assign to backup policy dialog opens.

  3. Select the high-frequency backup policy, and then click Assign. To create a policy, see Create Cloud Workload Backup Policies.

Eon enrolls each instance within a few minutes of the assignment. To confirm, run this command on an instance.

sudo eon-shoval ctl status

enrollment: enrolled means Eon has enrolled the instance. If it still shows not yet enrolled after a few minutes, check that the instance’s EC2 resource is assigned to a high-frequency backup policy.

To check the status in the Eon console, open the instance in Inventory and expand Backup sensor, which shows the Status, Version, and Last reported time. Status shows whether Eon Sensor is reporting to Eon, and it doesn’t show whether Eon has enrolled the instance. Not installed means Eon hasn’t received a report from the instance.

Eon Sensor is installed. The first backup of an enrolled instance is a full baseline backup of the instance’s volumes. Later high-frequency backups use Eon Sensor and save incremental snapshots to your vault.

If the Eon console shows an Action required item for Eon Sensor, see the troubleshooting in AWS: EC2 Support.

See also