Using Console
Using CLI
[KEYRING-NAME]
with a name for your keyring, [LOCATION]
with the location where you want to create the key, and [KEY-NAME]
with a name for your key.
[KEY-NAME]
with the name of the CMK you created in step 4 and [BUCKET-NAME]
with the name of the bucket that needs to be encrypted.
kms_key_name
field in the output to confirm that the bucket is encrypted using the CMK you created.
Using Python
google-cloud-storage
library using pip.
encryption
property:my-cmk
, us-central1
, and my-keyring
with your own values.