Audit Logging - GCP Pub/Sub
Manual Setup Prerequisites
note
These steps are only required for manual setup. If you use Terraform for your deployment, you don't need to complete these prerequisites.
Before configuring the manual Audit Log sink, complete the following steps in Google Cloud:
- Create a Pub/Sub topic and make a note of its topic name, for example, "test- auditlog".
- Set up a service account in the same project in Google Cloud and follow the instructions in the Temporal Cloud UI to configure the permissions for that service account.
Create an Audit Log sink
- In the Temporal Cloud UI, select Settings.
- On the Settings page, select Audit Logging.
- In the Audit Logging card, select Set Up Audit Log Integration.
- On the Set Up Audit Logs Integration page, select Pub/Sub.
- In the Service account email field, enter the service account email you created in the prerequisites.
- In the Topic name field, enter the topic name of the Pub/Sub topic you created in the prerequisites.
- There are two ways to configure the service account to write to the Pub/Sub sink. Select Manual to configure the account manually, or Deploy with Terraform to use Terraform. If you use Terraform, you don't need to complete the prerequisite steps above.
- Follow the instructions in the Temporal Cloud UI for the method you chose.
- Click Create to configure the audit log. This process may take a few minutes.
note
For more details, see the documentation on audit logging.