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

Policy: GCP > SQL > Instance > Database Flags > MySQL > Template

The template is used to generate the keys and values for database flags under GCP SQL instance.

Database flags are configurable parameters that allow to customize the behavior and performance of the Cloud SQL instance. These flags can be used to set various database engine options, such as enabling or disabling specific features, tuning performance settings, or adjusting the default behavior of the database. Changes to database flags usually require a restart of the instance to take effect.

Flags not defined in SQL Instance Databse Flags Template will not be modified or deleted. Setting a flag value to undefined or null will result in the flag being deleted.

Sample flags supported for MySQL DB engine:

MySQL: skip_show_database: on local_infile: off

See MySQL database flags for more information.

Targets

This policy targets the following resource types:

  • GCP > SQL > Instance

Primary Policy

This policy is used with the following primary policy:

  • GCP > SQL > Instance > Database Flags > MySQL

Controls

Setting this policy configures this control:

  • GCP > SQL > Instance > Database Flags

Policy Packs

This policy setting is used by the following policy packs:

  • GCP CIS v2.0.0 - Section 6 - Cloud SQL Database Services

Policy Specification

Schema Type
object
Default
{}
Examples [YAML]
  • skip_show_database: on
    local_infile: off
    

Category

  • Resource > Logging

In Your Workspace

  • Policy Settings by Type report

Developers

    Category URI
    • tmod:@turbot/turbot#/control/categories/resourceLogging
  • Policy Type URI
    • tmod:@turbot/gcp-sql#/policy/types/instanceMysqlDatabaseFlagsTemplate
  • GraphQL
    • query policyType(id: "tmod:@turbot/gcp-sql#/policy/types/instanceMysqlDatabaseFlagsTemplate") { … }
    • query policySettings(filter: "policyTypeId:'tmod:@turbot/gcp-sql#/policy/types/instanceMysqlDatabaseFlagsTemplate'") { … }
    • query policyValues(filter: "policyTypeId:'tmod:@turbot/gcp-sql#/policy/types/instanceMysqlDatabaseFlagsTemplate'") { … }
  • CLI
    • Get Policy Type
    • turbot graphql policy-type --id "tmod:@turbot/gcp-sql#/policy/types/instanceMysqlDatabaseFlagsTemplate"
    • Get Policy Settings
    • turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/gcp-sql#/policy/types/instanceMysqlDatabaseFlagsTemplate"
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