<TOPIC_NAME>
with the name of the Pub/Sub topic you want to enable audit logging for.policy.json
file with the following content:
<PERIMETER_NAME>
with a name for the VPC Service Control perimeter.<PROJECT_ID>
with your GCP project ID.<TOPIC_NAME>
with the name of the Pub/Sub topic you want to enable encryption for.<PROJECT_ID>
with your GCP project ID.<KEY_RING_NAME>
and <CRYPTO_KEY_NAME>
with the name of the key ring and crypto key you want to use for encryption.google-cloud-securitycenter
library to enable VPC Service Controls for your project.google-cloud-pubsub
library to implement access controls for your Pub/Sub topics and subscriptions.google-cloud-kms
library to encrypt and decrypt Pub/Sub messages using Cloud KMS.your-project-id
, your-organization-id
, [email protected]
, your-topic-name
, your-key-ring-id
, your-key-id
, your-message
) with your actual values in the above scripts.