Clean-up Scripts Based on Recommendations

Amazon Web Services (AWS)

Prerequisites

Implementation

  1. Install the requirements on a machine running Linux OS.

  2. Configure the AWS Command Line Interface. (Run the aws configure command. For information, see the AWS User Guide).

  3. Download the script from the corresponding subsection on the Recommendations page.

  4. From the same page, download the JSON file containing a list of all resources recommended for deletion.

  5. Run the script as follows: bash <script_name> <path to json file>.

Microsoft Azure

Prerequisites

Implementation

Azure Azure CLI

  1. Install the requirements on a machine running Linux OS.

  2. Sign in with the Azure CLI.

  3. Download the script from the corresponding subsection of the Recommendations page.

  4. From the same page, download the JSON file containing a list of all resources that are recommended for deletion.

  5. Run the script as follows: bash <script_name> <path to json file>.

Azure Shell

  1. Download the script and the JSON file from the corresponding subsection of the Recommendations page.

  2. Copy these files using the Upload/Download files button. The files will be placed in /usr/csuser/clouddrive.

  3. Run the script as follows: bash <script_name> <path to json file> using absolute paths or navigate to the necessary folder before executing.

Google Cloud Platform

Prerequisites

Implementation

  1. Install on a machine running Linux OS.

  2. Configure gcloud: run gcloud init. See Initializing the gcloud CLI for more information.

  3. Run script bash <script_name> <path to recommendation json file>.

Last updated

Was this helpful?