Skip to content

Latest commit

 

History

History
 
 

idle_vm_recommendations

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Google Idle VM Recommender

What it does

This Policy finds Idle Virtual Machine Recommendations and reports when it finds them. You can then delete the idle instances

Input Parameters

This policy has the following input parameters required when launching the policy.

  • Email addresses - A list of email addresses to notify
  • Zone - Location to check, it is specifically Google zones
  • Project ID - Google Projects to Query. Leave blank to query all projects.
  • Unattached Days - Days a volume has been unattached. Default is 30 days

Policy Actions

The following policy actions are taken on any resources found to be out of compliance.

  • Send an email report

Prerequisites

This policy uses credentials for connecting to the cloud -- in order to apply this policy you must have a credential registered in the system that is compatible with this policy. If there are no credentials listed when you apply the policy, please contact your cloud admin and ask them to register a credential that is compatible with this policy. The information below should be consulted when creating the credential.

The recommender API also needs to be enabled..

Credential configuration

For administrators creating and managing credentials to use with this policy, the following information is needed:

Provider tag value to match this policy: gce

Required permissions in the provider:

  • The resourcemanager.projects.get permission
  • The roles/recommender.computeAdmin role

Supported Clouds

  • Google

Cost

This Policy Template does not launch any instances, and so does not incur any cloud costs.

API Quotas

The google api sets quotas on the recommender api, which will generate a 429 RESOURCE_EXHAUSTED. See Quotas & Limits