AWS SSM discovery

  • Release version: Australia
  • Updated June 16, 2026
  • 4 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of AWS SSM discovery

    AWS Systems Manager (SSM) Agent discovery streamlines the discovery of Amazon EC2 instances by leveraging SSM agents. This agent-based approach reduces reliance on traditional MID Server configurations, simplifies credential management, and enhances scalability across multiple AWS regions. The ServiceNow AI Platform® communicates with MID Servers, which interact with AWS services to execute commands on target devices. Results are collected via S3 and processed back into the CMDB to maintain accurate configuration data.

    Show full answer Show less

    Key Features

    • Discovery without the need for local operating system credentials on target instances.
    • Simplified deployment with no requirement for Agent Client Collector (ACC) or Virtual Private Cloud (VPC) access.
    • Reduced need for multiple MID Servers and minimized direct network access to target devices.
    • Secure credential management and command execution through AWS IAM roles, S3 buckets, and optional KMS encryption keys.
    • Supports multi-region AWS environments with custom SSM documents deployed per region.
    • MID Server properties allow configuration of AWS-specific settings, such as S3 bucket names and KMS key details.
    • Integration with ServiceNow Cloud Discovery schedules enables AWS SSM as a discovery method.

    Requirements and Configuration

    • Ensure required ServiceNow applications and plugins are installed and up to date (Discovery Cloud Discovery Workspace 1.7.1+, CMDB CI Class Models 1.74.0+, Discovery and Service Mapping Patterns 1.27.0+).
    • Install and configure MID Servers with the AWS SSM capability enabled.
    • Configure AWS environment: create IAM roles with appropriate permissions, EC2 instance roles, S3 buckets for command output storage, and optionally KMS keys for encrypting sensitive credentials.
    • Import custom ServiceNow-provided YAML SSM documents into each AWS region targeted for discovery.
    • Set ServiceNow system properties to enable SSM discovery and define root or non-root credentials for command execution.
    • Configure MID Server system properties for AWS resource access (S3, KMS).

    Benefits for ServiceNow Customers

    • Improved security by eliminating the need for local credentials and enabling secure retrieval of encrypted credentials at runtime.
    • Greater scalability and ease of management in multi-region AWS deployments due to reduced MID Server footprint and simplified network requirements.
    • Enhanced discovery accuracy and completeness by capturing full command output via S3, overcoming output size limitations.
    • Flexible discovery scheduling through integration with Cloud Discovery Admin Workspace, enabling automated and repeatable discovery processes.

    Limitations

    • Does not support file-based discovery, certificate-based discovery, top-down discovery, or enhanced ADM Change/Unchange user steps.
    • Only supports sudo for privileged commands and defaults to the sh shell; alternate shells or command types are not supported.

    AWS Systems Manager (SSM) Agent discovery introduces a streamlined, agent-based approach to discovering Amazon Elastic Compute Cloud (EC2) using AWS SSM. This integration enhances Discovery by leveraging SSM agents to reduce dependency on traditional MID Server configurations, simplify credential management, and improve scalability across multi-region environments.

    Workflow

    The overall process from a high level is as follows:
    1. The ServiceNow AI Platform® sends discovery commands to the MID Server.
    2. The MID interacts with AWS services (SSM, Simple Storage Service (S3), Parameter Store) to execute commands on target devices.
    3. The SSM agents run the commands and return results to S3.
    4. The MID retrieves and processes results.
    5. The MID sends the results back to the ServiceNow AI Platform® via the ECC queue, which updates the CMDB.

    Benefits and usage

    The following examples highlight the primary advantages and practical uses of AWS SSM Agent discovery:
    • Execute discovery without needing additional credentials local to the operating system.
    • Simplify deployment without the need of Agent Client Collector (ACC) or Virtual Private Cloud (VPC) access.
    • Minimize the need for multiple MID Servers and direct network access to target devices.
    • Securely manage credentials and command execution using AWS services.

    Requirements

    Confirm that you have the required versions of the following applications and plugins:
    • Discovery
    • Cloud Discovery Workspace version 1.7.1 or later.
    • CMDB CI Class Models version 1.74.0 or later.
    • Discovery and Service Mapping Patterns version 1.27.0 or later.

    Install the MID Server. For more information, see Install and configure the MID Servers.

    Verify that you have an AWS user account with administrative access.

    Verify that you have a ServiceNow AI Platform® user account with the discovery_admin role.

    Unsupported features

    Currently, the following features don’t support AWS SSM discovery:

    • File-based discovery
    • Certificate-based discovery
    • Top-down discovery
    • Enhanced ADM
    • Change/Unchange user step in patterns
    Note:
    SSM supports only sudo for privileged command execution and defaults to the sh shell, with no support for alternate command or shell types.

    AWS environment configuration

    Create IAM roles and permissions
    Define Identity and Access Management (IAM) roles to support AWS SSM operations, specifying the required permissions for executing Read, Write, and List commands. For more information, see IAM Policies
    Configure EC2 roles and instances
    Create EC2 roles and assign the necessary permissions for these roles to interact with SSM. For more information about setting up an EC2 instance, see EC2 Instances.
    Create S3 Buckets
    Create S3 buckets to support large data transfers and configure appropriate bucket policies and life cycle rules. To overcome SSM's 24,000-character output limit, command output is redirected to S3, enabling full payload capture. Additionally, S3 facilitates file transfers to EC2 instances. For more information about creating S3 buckets, see Setting up an S3 Bucket.
    (Optional) Configure KMS keys
    Create a custom AWS Key Management Service (KMS) key to encrypt sensitive credentials stored as SecureString parameters in the AWS Systems Manager Parameter Store. Using a dedicated key enhances security by verifying that credentials are encrypted and securely retrieved at runtime, without exposing them in plain text. For more information about creating KMS keys, see Create a Customer Managed AWS KMS Key.
    Important:
    If you’re using applicative credentials in Discovery, you must create a custom KMS key.
    Import custom SSM documents
    SSM command execution depends on the availability of required documents. Before initiating SSM-based discovery, verify that all YAML files provided by ServiceNow have been successfully deployed to each AWS region where the discovery process will run. For more information on this process, see Import Custom AWS Documents. You can download the YAML files directly from this article.

    For more information on AWS Management Console configuration, see the Amazon SSM Discovery - AWS Environment Setup Instructions article in the Now Support Knowledge Base.

    ServiceNow AI Platform® instance configuration

    Configure System Properties
    Enable the following Discovery system properties:
    • glide.discovery.enable_ssm
    • glide.discovery.ssm.enable_windows

    The AWS SSM Agent runs with root (Linux) or SYSTEM (Windows) privileges, meaning any command sent through it can execute with full system access. Due to this high level of access, SSM is turned off by default for security reasons. For more information, see Enable AWS SSM-based discovery.

    Define root and non-root credentials

    The MID Server property mid.discovery.aws_ssm.linux.fallback_root_user enables EC2 instances to default to the root user. By default, this setting is false, but if you don’t want to set up alternate user credentials, you can enable it to run commands as root. If you leave this setting turned off, you must create a credential record in the AWS SSM Instance Users [aws_ssm_instance_user_credentials] table, where you simply provide the user name that should be used to run commands on the instance. For more information, Enable root fallback and Configure custom user credentials.

    Configure MID Server properties
    After you set up KMS keys or S3 buckets in the AWS Management Console, configure the following MID Server system properties on the ServiceNow AI Platform®:
    • mid.discovery.aws_ssm.kms_key_name
    • mid.discovery.aws_ssm.kms_key_region
    • mid.discovery.aws_ssm.s3_bucket_name
    • mid.discovery.aws_ssm.s3_bucket_region
    For more information, see Configure MID Server for AWS S3 access and Configure MID Server for AWS KMS access.
    Enable MID Server capability
    You must enable the new MID Server capability for AWS SSM so the MID Server can support running SSM discovery. By default, this capability is included if you're using the ALL capability. However, if you're using individual capabilities, you must manually add the new AWS SSM capability to your MID Servers. For information about adding a capability, see Configure MID Server capabilities.

    Cloud Discovery schedule configuration

    Create a Cloud Discovery schedule
    SSM discovery can be deployed within an AWS-based Cloud Discovery schedule in the Discovery Admin Workspace. To do this, go to the Deep discovery step, enable the Create an IP-based discovery schedule toggle, and select Discover servers though AWS Systems Manager (SSM) Agent as the Discovery method. For more information, see Create an AWS Discovery schedule in Discovery Admin Workspace.