Terraform modules for creating GCP infrastructure.
You will need the gcloud cli and terraform.
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.tfvarsAuthenticate 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 applyTo push to Google Infrastructure Manager, there can be no state files in the terraform.
rm -rf .terraform* terraform.tfstate terraform.tfstate.backup