AccuKnox CDR for GCP¶
Introduction¶
AccuKnox CDR for GCP is deployed using terraform scripts, the scripts deployes the following resources:
Resource | Purpose |
---|---|
Log Sink | Routes Logs to a Sink |
Pub/Sub Topic | Recieves logs from Log Sink |
Pub/Sub Subscription | Consumers subscribes to the Log sent by the Log sink |
Service Account | Service account to subscribe to the Pub/Sub subscription |
In addition, the scripts will enable the following API's if they are disabled:
- pubsub.googleapis.com
- iam.googleapis.com
- logging.googleapis.com
The terraform script will be provided to you by AccuKnox team in the onboarding phase.
Setup¶
To setup the integration please follow the steps below
Step 1: Deploy the resources¶
In this step we assume you that you are authenticated to GCP via CLI. You can authenticate using this command.
gcloud auth application-default login
Before applying the terraform scripts, please update the terraform.tfvars
with the appropriate values
Variable | Description | Default Value | Requirement |
---|---|---|---|
project_id |
GCP project ID | Mandatory | |
region |
Any valid GCP region (required by the Terraform provider) | Mandatory | |
pubsub_topic_name |
Pub/Sub Topic name | accuknox-cdr |
Optional |
subscription_name |
Pub/Sub Subscription name | accuknox-cdr |
Optional |
service_account_id |
Service Account name | pubsub-reader |
Optional |
sink_name |
Log Sink name | audit-logs-to-pubsub |
Optional |
Please run the following commands to deploy the required resources:
terraform init
terraform plan
terraform apply
Step 2: Generate Service account keys¶
- Navigate to Service Accounts under IAM & Admin > Service Accounts
- Click on the Service Account Email (highlited in blue)
- Generate Keys under Keys > Add Key
Save the generated keys in a safe place and transmit them as well to your AccuKnox Point of Contact to start the onboarding process