Cost optimization

When Workload Discovery on AWS is not in use, you can deactivate the ECS scheduled task and stop the Amazon Neptune database to reduce costs.

Using the AWS Management Console

To deactivate the discovery process and stop the Amazon Neptune database:

  1. Sign in to the Amazon Elastic Container Service console.

  2. Select the cluster named workload-discovery-cluster.

  3. Select Scheduled Tasks.

  4. Select workload-discovery-rule.

  5. Choose Edit.

  6. Clear the Schedule rule enabled checkbox and choose Update.

  7. Sign in to the Amazon Neptune console.

  8. For the DB identifier, select the wdneptunedbcluster-<ID-string> radio box.

  9. Select the Stop option from the Action dropdown menu.

To reactivate the discovery process and stop the Amazon Neptune database:

  1. Sign in to the Amazon Elastic Container Service console.

  2. Select the cluster named workload-discovery-cluster.

  3. Select Scheduled Tasks.

  4. Select workload-discovery-rule.

  5. Choose Edit.

  6. Select the Schedule rule enabled checkbox and choose Update.

  7. Sign in to the Amazon Neptune console.

  8. For the DB identifier, select the wdneptunedbcluster-<ID-string> radio box.

  9. Select the Start option from the Action dropdown menu.

When the reactivated discovery task has completed for the first time, any new resources that have been deployed since Workload Discovery on AWS was disabled will be discovered.

Using the AWS Command Line Interface (AWS CLI)

Determine whether the AWS Command Line Interface (AWS CLI) is available in your environment. For installation instructions, refer to What Is the AWS Command Line Interface? in the AWS CLI User Guide.

To deactivate the discovery process and stop the Amazon Neptune database:

  1. To deactivate the discovery process, run the following command:

    aws events disable-rule --name workload-discovery-rule
  2. To stop the Amazon Neptune database, run the following command:

    aws neptune stop-db-cluster --db-cluster-identifier wdneptunedbcluster-<ID-string>.

To reactivate the discovery process and restart the Amazon Neptune database:

  1. To reactivate the discovery process, run the following command:

    aws events enable-rule --name workload-discovery-rule
  2. To restart the Amazon Neptune database, run the following command:

    aws neptune start-db-cluster --db-cluster-identifier wdneptunedbcluster-<ID-string>

When the reactivated discovery task has ran for the first time, any new resources that have been deployed since the service was disabled will be discovered.