Using Console
Using CLI
[KEY_NAME]
with the name of the KMS key that is being used in the web tier.
[LOCATION]
with the location of the KMS key.
[KEYRING_NAME]
with the name of the keyring that contains the KMS key.
[SERVICE_ACCOUNT_EMAIL]
with the email address of the service account that needs access to the KMS key.
[INSTANCE_NAME]
with the name of the instance running the web tier, and [KEY_NAME]
with the name of the KMS key being used in the web tier.
[INSTANCE_NAME]
with the name of the instance running the web tier, [KEY_NAME]
with the name of the KMS key being used in the web tier, and [NEW_KEY_NAME]
with the name of the new key generated in step 4.
Using Python
your-project-id
, your-key-ring-name
, and your-key-name
with your own values.
your-project-id
, your-zone
, your-instance-name
, your-network-interface-name
, location
, your-key-ring-name
, and your-key-name
with your own values.