Cost Optimization - AWS Perspective

Cost Optimization

When AWS Perspective 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 aws-perspective-<account-number>-cluster.

  3. Select Scheduled Tasks.

  4. Select aws-perspective-<account-number>-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 perspective-dev-cluster 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 aws-perspective-<account-number>-cluster.

  3. Select Scheduled Tasks.

  4. Select aws-perspective-<account-number>-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 perspective-dev-cluster 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 AWS Perspective 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 aws-perspective-<account-number>-rule
  2. To stop the Amazon Neptune database, run the following command:

    aws neptune stop-db-cluster --db-cluster-identifier perspective-dev-cluster

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 aws-perspective-<account-number>-rule
  2. To restart the Amazon Neptune database, run the following command:

    aws neptune start-db-cluster --db-cluster-identifier perspective-dev-cluster

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.