Using Console
Using CLI
<keyring-name>
with a name for the keyring and <location>
with the location where the keyring will be stored (for example, us-central1).
<key-name>
with a name for the key.
<cluster-id>
with the ID of the Bigtable cluster and <key-resource-id>
with the resource ID of the key obtained in step 6.
Using Python
google.cloud.bigtable_admin_v2.types.EncryptionInfo
class.
encryption_type
property of the EncryptionInfo
instance to google.cloud.bigtable_admin_v2.enums.EncryptionInfo.EncryptionType.CUSTOMER_MANAGED_ENCRYPTION
.
kms_key_name
property of the EncryptionInfo
instance to the name of the Cloud KMS key.
update_cluster
method of the Bigtable client library.
your-project-id
, your-instance-id
, your-cluster-id
, your-key-ring
, and your-key
with the actual values specific to your GCP project and Bigtable instance.