This is a terraform setup for sending disruptive technologies messages to a bigquery table. This is mostly to test the terraform-provider-dt
- Terraform
- GCP account
- Editor permission on the project
- IAM Workflow Identity Pool Admin permission on the project
Note! these might not be minimal permissions, but they are the ones I have tested with.
- Disruptive Technologies Service Account
- With
- With edit permission on the project or org.
- Clone the repository
- Setup the following environment variables:
DT_API_KEY_ID
- The API key ID for the disruptive technologies service account keyDT_API_KEY_SECRET
- The API key secret for the disruptive technologies service account keyDT_OIDC_EMAIL
- The email of DT service account
- Add the following to the
terraform.tfvars
file:
google_project_id = "your-project-id"
dt_project_id = "your-dt-project-id"
dt_organization_id = "your-dt-organization-id"
can also be set as environment variables:
TF_VAR_google_project_id
TF_VAR_dt_project_id
TF_VAR_dt_organization_id
- Run
terraform init
- Run
terraform apply
Check bigquery for the table events
in the dataset dt_events
in the project you specified, sensor events should start appearing in the table. Touch a sensor to generate an event.