Skip to content

Latest commit

 

History

History
 
 

cud_recommendations

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Google Committed Use Discount Recommender

What it does

This Policy finds Google Committed Use Discount Recommendations and reports when it finds them.

Input Parameters

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

  • Email addresses - A list of email addresses to notify
  • Region - Region to check, it is GCP Region locations
  • Project ID - Google Projects to Query. Leave blank to query all projects.

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.billingAccountCudViewer role
  • The roles/recommender.projectCudViewer 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