Using Console
Using CLI
[KEYRING_NAME]
with the desired name for your key ring and [LOCATION]
with the desired location for your key ring.
[KEY_NAME]
with the desired name for your key and [KEYRING_NAME]
and [LOCATION]
with the values you used in step 3.
cloudkms.cryptoKeyEncrypterDecrypter
role on the key you just created using the following command:
[KEY_NAME]
and [KEYRING_NAME]
with the values you used in step 4, and replace [LOCATION]
with the location of your key ring. Also, replace [SERVICE_ACCOUNT_EMAIL]
with the email address of the Cloud Spanner service account.
[INSTANCE_ID]
with the ID of the Spanner instance you want to update, [PROJECT_ID]
with the ID of your GCP project, [LOCATION]
with the location of your key ring, and [KEYRING_NAME]
and [KEY_NAME]
with the values you used in step 4.
[INSTANCE_ID]
with the ID of the Spanner instance you updated.
Using Python