Skip to content

Sensor: Ephemeral and Cloud-Init

Use the Ephemeral deployment for autoscaling groups, short-lived cloud instances, CI workers, disposable test hosts, and immutable virtual machines. The deployment template installs a Sensor when each instance starts.

Prerequisites

  • Linux image with systemd and curl
  • Kernel 5.4 or newer with BTF
  • x86_64 or aarch64
  • Root-capable cloud-init or user data
  • Outbound connectivity to the Console
  • A unique instance identity available at boot

Generate the template

  1. Open Sensors > Deploy.
  2. Select Ephemeral.
  3. Choose Standard or Telecom.
  4. Enter a node-name prefix and useful tags.
  5. Generate the fleet token and cloud-init template.
  6. Add the generated template to the launch template, image configuration, or autoscaling group.

Ephemeral deployments use a reusable fleet token because instances may be created long after the template is published. The default token lifetime is 365 days and it can be revoked from the Console.

Store the token in your cloud secret or protected launch-template mechanism. Do not publish it in a reusable image, source repository, or unprotected instance metadata.

Ephemeral sensor deployment step 1: selecting the deployment type.
Ephemeral sensor deployment step 1: selecting the deployment type. Click to enlarge
Ephemeral sensor deployment step 2: choosing the flavor, node-name prefix, and tags.
Ephemeral sensor deployment step 2: choosing the flavor, node-name prefix, and tags. Click to enlarge
Ephemeral sensor deployment step 3: the generated fleet token and cloud-init template.
Ephemeral sensor deployment step 3: the generated fleet token and cloud-init template. Click to enlarge

Use unique node names

Every instance must derive a unique name. Good sources include:

  • cloud instance ID;
  • provider instance name;
  • autoscaling group plus instance ID;
  • CI pipeline plus job ID.

Do not use only the image name or autoscaling-group name. Reused names make current and terminated instances difficult to distinguish.

Bake versus bootstrap

Prefer a small launch-time bootstrap generated by the Console. This ensures new instances download the current approved Sensor version and receive a unique identity.

If your environment requires a pre-baked image:

  • do not bake enrolled certificates or Sensor state into the image;
  • do not start the Sensor during image creation;
  • inject the token and unique node identity only at instance launch;
  • update the image template when the supported bootstrap flow changes.

Verify an autoscaling deployment

Launch one canary instance and confirm:

  • the Sensor service becomes active;
  • a unique Sensor appears in Fleet;
  • the correct group and site tags are present;
  • runtime events arrive before the instance is terminated;
  • scale-out creates distinct Sensor records;
  • scale-in does not leave active records that appear healthy.

Historical evidence from a terminated instance remains governed by Console retention. The instance itself should be shown as offline or decommissioned, never as currently running.

Upgrades

Update the launch template or cloud-init source to the current Console-generated deployment flow, then replace instances through the normal autoscaling rollout. Do not rely on an in-place fleet upgrade for instances that are routinely replaced.

Use a canary template version before changing the full group.

Cleanup

Where the platform supports a termination hook, use the Console-provided decommission procedure before shutdown. Otherwise, define an operational policy for removing terminated Sensor records after confirming the instance no longer exists.

Revoking the fleet token prevents future enrollment from that template but does not stop already-enrolled Sensors.

Troubleshooting

SymptomCheck
New instance never appearscloud-init log, token status, Console URL, DNS, and system time.
Multiple instances share one nameReplace the naming expression with a provider instance ID.
Golden image creates duplicate identitiesRemove all Sensor state before image capture and install only at launch.
Token has expired or was revokedGenerate a new Ephemeral template and update the launch configuration.
Instances show stale after scale-inConfirm termination and decommission or retire the old records.

Further reading

Released under the Telovix Commercial License.