Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Create a serverless schedule for Amazon ECS discovery

Create a serverless schedule to discover Amazon Elastic Container Service (Amazon ECS) and Amazon Elastic Container Registry (ECR) resources in a standalone discovery.

Before you begin

Verify you have an AWS service account ID and have created AWS credentials. For more information, see the prerequisites section in Amazon ECS resource discovery with Patterns.

Role required: discovery_admin

About this task

Discovering ECR resources requires running the Amazon AWS - ECS pattern before using Aqua Trivy to scan container images. To discover only ECS and ECR resources without performing a full AWS pattern discovery, create a serverless discovery schedule using the Amazon AWS - ECS pattern.

Procedure

  1. Navigate to All > Discovery > Discovery Schedules.

  2. Create the discovery schedule record.

    1. Select New.

    2. On the form, fill in the fields.

      FieldDescription
      NameUnique name for this discovery schedule.
      DiscoverScan type, which should be Serverless.
      MID serverName of the MID Server to use for this schedule.
      ActiveEnables this schedule for discovery.
      RunDetermines the run schedule of the discovery.
    3. Select Submit.

  3. Create the execution pattern.

    1. In the Discovery Schedules page, select the record you created.

    2. In the Serverless Execution Patterns tab, select New.

    3. On the form, fill in the fields.

      FieldDescription
      NameDescriptive name for this record.
      PatternPattern to be used for this schedule, which should be Amazon AWS - ECS.
      Proxy HostFully qualified domain name of the machine on which you're installing the proxy server, which should be Global.
      ActiveEnables this schedule for discovery.
    4. Select Submit.

  4. Set the pattern launcher parameters.

    1. In the Discovery Pattern Launcher Parameters tab, select the record you created.

    2. On the form, fill in the fields.

      ParameterValue
      cloud_account_idAWS cloud service account ID.
      cloud_cred_idSys_id of the AWS credentials you created on the ServiceNow AI Platform.
      cloud_datacenter_typeName of the AWS Datacenter table, which should be cmdb_ci_aws_datacenter.
    3. Select Submit.

What to do next

Either execute discovery immediately by selecting Discover now or wait until the predefined schedule triggers the discovery.

Parent Topic:AWS discovery using patterns

Related topics

Amazon ECS resource discovery with Patterns

Scan container images