cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Databricks AWS Worker Nodes Not Registering with AWS Systems Manager (SSM)

ShivannaGundana
New Contributor

Hi Team,

We are investigating an issue where Databricks worker instances running on AWS are not registering with AWS Systems Manager (SSM).

Environment

  • Databricks Runtime: 17.3 LTS
  • Worker OS: Ubuntu 24.04
  • AWS EC2 worker instances launched by Databricks
  • IAM instance profile attached with the required SSM permissions (including AmazonSSMManagedInstanceCore)

Validation Performed

  • Verified the EC2 instances launch successfully.
  • Confirmed the correct IAM instance profile is attached.
  • Verified required SSM permissions are present.
  • Validated outbound network connectivity.
  • Verified security groups and routing configuration.

Issue Observed

The Databricks worker EC2 instances do not register as Managed Nodes in AWS Systems Manager.

During troubleshooting we observed:

  • The amazon-ssm-agent binary is not available on the worker nodes.
  • No SSM Agent service is running.
  • Session Manager status remains Not Connected.
  • The instances do not appear in the AWS Systems Manager Managed Nodes inventory.

Troubleshooting Performed

  • Created a test Databricks compute with the required instance profile.
  • Attempted to install and start the Amazon SSM Agent using a cluster-scoped init script.
  • Verified the init script execution completed successfully.
  • Despite the installation attempt, the EC2 instances still do not register with AWS Systems Manager.

Questions

Could you please help clarify the following?

  1. Are Databricks Runtime 17.3 Ubuntu worker images expected to include the Amazon SSM Agent by default?
  2. Is installing the Amazon SSM Agent through cluster-scoped init scripts a supported approach?
  3. What is the recommended method for enabling AWS Systems Manager access on Databricks-managed EC2 worker nodes?
  4. Are there any Databricks restrictions or known limitations that would prevent SSM Agent registration?

Any guidance or recommended best practices would be appreciated.

Thank you

2 REPLIES 2

ThomazNeto
Databricks Partner

Honest answers first, then a debugging path — because part of this simply isn't documented, and I'd rather say so than guess.

1. Is the SSM Agent expected in DBR images? I found no Databricks documentation committing to include it, and your own finding (binary absent on 17.3) matches that. Databricks builds its own hardened Ubuntu images; assume the agent is not there unless Databricks says otherwise. Note the stock Ubuntu 24.04 AMIs ship the agent via snap — Databricks images are not stock Ubuntu, so that expectation doesn't carry over.

2. Init scripts are the supported way to install software on cluster nodes in general, yes — but I found nothing from Databricks blessing (or forbidding) the SSM Agent specifically. "Not documented" is the accurate answer.

3/4. Before fighting the install, I'd test one hypothesis that would explain everything you're seeing: does your init script actually run in the same environment as the EC2 host? Attach a notebook to the test cluster and run:

%sh
ps -p 1 -o comm= # is PID 1 systemd?
which amazon-ssm-agent
systemctl status amazon-ssm-agent 2>&1 | head
cat /var/log/amazon/ssm/amazon-ssm-agent.log 2>/dev/null | tail -50

If PID 1 isn't systemd, you're inside a containerized runtime environment — the agent has no service manager to run under and nothing that installs there manages the host, which would explain "init script succeeded, instance never registers." Also: "init script completed successfully" only means exit code 0 — if you installed via snap, snapd likely isn't functional on these nodes and the failure can be silent. If you retry, use the regional S3 .deb package with dpkg instead of snap, and check the agent log above for registration errors (it needs to reach ssm and ssmmessages endpoints).

One step back, though: what's the underlying goal? These nodes are ephemeral — autoscaling creates and destroys them constantly, so SSM Fleet Manager inventory will churn even if you get registration working. If the driver is shell access, the web terminal already covers it. If it's compliance/monitoring requirements, ask your account team about the Enhanced Security and Compliance add-on (hardened images + security monitoring agents) — that's the Databricks-native answer to most of the requirements that usually motivate SSM. And if you genuinely need SSM on managed nodes, this question is worth putting to Databricks support directly, since the public docs are silent on it.

 

Thomaz A. Rossito Neto
Principal Data & AI — CI&T
thomazn@ciandt.com
linkedin.com/in/thomaz-antonio-rossito-neto

alexjames3123
Visitor

@ShivannaGundana wrote:

This is a helpful troubleshooting discussion for teams working with Databricks and AWS environments. Checking IAM permissions, network connectivity, and instance configuration are important steps when diagnosing SSM registration issues. Proper documentation and systematic validation can make resolving cloud infrastructure problems much easier. For a different topic related to family-friendly meals, this kids recipe guide also provides useful information.


@ShivannaGundana wrote:

Hi Team,

We are investigating an issue where Databricks worker instances running on AWS are not registering with AWS Systems Manager (SSM).

Environment

  • Databricks Runtime: 17.3 LTS
  • Worker OS: Ubuntu 24.04
  • AWS EC2 worker instances launched by Databricks
  • IAM instance profile attached with the required SSM permissions (including AmazonSSMManagedInstanceCore)

Validation Performed

  • Verified the EC2 instances launch successfully.
  • Confirmed the correct IAM instance profile is attached.
  • Verified required SSM permissions are present.
  • Validated outbound network connectivity.
  • Verified security groups and routing configuration.

Issue Observed

The Databricks worker EC2 instances do not register as Managed Nodes in AWS Systems Manager.

During troubleshooting we observed:

  • The amazon-ssm-agent binary is not available on the worker nodes.
  • No SSM Agent service is running.
  • Session Manager status remains Not Connected.
  • The instances do not appear in the AWS Systems Manager Managed Nodes inventory.

Troubleshooting Performed

  • Created a test Databricks compute with the required instance profile.
  • Attempted to install and start the Amazon SSM Agent using a cluster-scoped init script.
  • Verified the init script execution completed successfully.
  • Despite the installation attempt, the EC2 instances still do not register with AWS Systems Manager.

Questions

Could you please help clarify the following?

  1. Are Databricks Runtime 17.3 Ubuntu worker images expected to include the Amazon SSM Agent by default?
  2. Is installing the Amazon SSM Agent through cluster-scoped init scripts a supported approach?
  3. What is the recommended method for enabling AWS Systems Manager access on Databricks-managed EC2 worker nodes?
  4. Are there any Databricks restrictions or known limitations that would prevent SSM Agent registration?

Any guidance or recommended best practices would be appreciated.

Thank you



intresitng