Skip to content

darktrace/terraform-gcp-darktrace-cloud-security

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform GCP Darktrace Cloud Security

Terraform

Terraform modules for creating GCP infrastructure.

Prerequisites

You will need the gcloud cli and terraform.

Usage

To run this module, first create a terraform.tfvars in the main directory.

touch main/terraform.tfvars
echo 'region="europe-west2"
project_id="YOUR_PROJECT_NAME"
project_number=YOUR_PROJECTNUMBER
aws_account_id="CUSTPUBLIC_ACCOUNT_ID"
customer_id="YOUR_CUSTOMER_ID"
products=["cloud-security-gcp","flow-logs-gcp"]
' > terraform.tfvars

Authenticate GCloud and set your default project

gcloud auth login
gcloud config set project <your-project-id>

After filling in tfvars, run the following to create the infrastructure.

terraform plan
terraform apply

Cleaning Terraform

To push to Google Infrastructure Manager, there can be no state files in the terraform.

rm -rf .terraform* terraform.tfstate terraform.tfstate.backup

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages