Using Console
Using CLI
[INSTANCE_NAME]
with the name of your SQL instance, [SIZE]
with the desired storage size in GB, [STORAGE_TYPE]
with the desired storage type, [NETWORK_NAME]
with the name of the authorized network, [DATABASE_VERSION]
with the desired database version, [DAY_OF_WEEK]
with the preferred day of the week for maintenance, [HOUR_OF_DAY]
with the preferred hour of the day for maintenance, [RELEASE_CHANNEL]
with the preferred release channel for maintenance, and [KEY_NAME]
with the name of the customer-managed encryption key.
encryptionKeyName
property set to the name of your customer-managed encryption key.
Using Python
project_id
, location_id
, key_ring_id
, and crypto_key_id
with your own values.project_id
, instance_id
, location_id
, key_ring_id
, and crypto_key_id
with your own values.instance_name
with your own value.These steps will remediate the misconfiguration of SQL instances not being encrypted using customer-managed keys (CMKs) in GCP.