gcp.gke-cluster

GCP resource: https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters

Filters

Actions

delete

Action to delete GKE clusters

It is recommended to use a filter to avoid unwanted deletion of GKE clusters

example

policies:
  - name: gcp-delete-testing-gke-clusters
    resource: gcp.gke-cluster
    filters:
      - type: value
        key: name
        op: regex
        value: '^(test-|demo-)*'
    actions:
      - type: delete
properties:
  type:
    enum:
    - delete
required:
- type

Permissions - container.clusters.delete