Turbot Guardrails Hub 
Hub
  • Mods
  • Policy Packs
  • Docs
  • Home
ModsPolicy PacksDocsHome
Mods
GCP
Loading policies...

Policy: GCP > SQL > Instance > Labels

Determine the action to take when an GCP SQL instance labels are not updated based on the GCP > SQL > Instance > Labels > * policies.

The control ensure GCP SQL instance labels include labels defined in GCP > SQL > Instance > Labels > Template.

Labels not defined in Instance Labels Template will not be modified or deleted. Setting a label value to undefined will result in the label being deleted.

See Labels for more information.

Targets

This policy targets the following resource types:

  • GCP > SQL > Instance

Related Policies

  • Template

Controls

Setting this policy configures this control:

  • GCP > SQL > Instance > Labels

Policy Specification

Schema Type
string
Default
Skip
Valid Values [YAML]
  • Skip
    
  • Check: Labels are correct
    
  • Enforce: Set labels
    
Examples [YAML]
  • Check: Labels are correct
    

Category

  • Resource > Tags

In Your Workspace

  • Policy Settings by Type report

Developers

    Category URI
    • tmod:@turbot/turbot#/control/categories/resourceTags
  • Policy Type URI
    • tmod:@turbot/gcp-sql#/policy/types/instanceLabels
  • GraphQL
    • query policyType(id: "tmod:@turbot/gcp-sql#/policy/types/instanceLabels") { … }
    • query policySettings(filter: "policyTypeId:'tmod:@turbot/gcp-sql#/policy/types/instanceLabels'") { … }
    • query policyValues(filter: "policyTypeId:'tmod:@turbot/gcp-sql#/policy/types/instanceLabels'") { … }
  • CLI
    • Get Policy Type
    • turbot graphql policy-type --id "tmod:@turbot/gcp-sql#/policy/types/instanceLabels"
    • Get Policy Settings
    • turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/gcp-sql#/policy/types/instanceLabels"
Guardrails
Guardrails Hub
  • Hub
  • Docs
  • Blog
  • Changelog
Products
  • GuardrailsGuardrails
  • PipesPipes
  • SteampipeSteampipe
  • PowerpipePowerpipe
  • FlowpipeFlowpipe
  • TailpipeTailpipe
Turbot
  • Home
  • About us
  • We're hiring!
  • Contact us
Community

Our community of practitioners love to discuss cloud governance & security.

Slack logoJoin us on Slack →

System StatusLegalSecurity
Terms of UseSecurityPrivacy
39
Mods
130
Resource Types
2,226
Policies
1,100
Controls
35
Quick Actions
83
IAM