diff --git a/README.md b/README.md index ac50182..81c95ab 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ You will need to create a new project in GCP and set up billing. Note the projec - Storage Admin The following items can be set in `terraform.tfvars`: -- `credentials`: ~~The path to your service account key file. No default.~~ This isn't working. Sorry. You will need to manually edit the credentials file path in `main.tf`. +- `credentials`: The path to your service account key file. Please make sure it has the permissions listed above. No default. - `disk_size`: The disk size (in GB) for the instance. Default `32`. [OpenCTI minimum specs](https://github.com/OpenCTI-Platform/opencti/blob/5ede2579ee3c09c248d2111b483560f07d2f2c18/opencti-documentation/docs/getting-started/requirements.md) is 32GB drive. - `machine_type`: The GCE machine type to use. Default `e2-standard-8`. [OpenCTI minimum specs](https://github.com/OpenCTI-Platform/opencti/blob/5ede2579ee3c09c248d2111b483560f07d2f2c18/opencti-documentation/docs/getting-started/requirements.md) is 8x16. The default size is 8x32. - `project_id`: The Google Cloud project ID. No default. diff --git a/aws/terraform.tfvars b/aws/terraform.tfvars index 28cf0a6..9c22645 100644 --- a/aws/terraform.tfvars +++ b/aws/terraform.tfvars @@ -1,7 +1,7 @@ # allowed_ips_application = ["0.0.0.0/0"] # availability_zone = "us-east-1a" # instance_type = "t3.2xlarge" -# login_email = "login.email@example.com" +login_email = "login.email@example.com" # region = "us-east-1" # root_volume_size = 32 # storage_bucket = "opencti-storage" diff --git a/azure/terraform.tfvars b/azure/terraform.tfvars index 890a361..8f44542 100644 --- a/azure/terraform.tfvars +++ b/azure/terraform.tfvars @@ -1,4 +1,4 @@ -account_name = "Pay-As-You-Go" +account_name = "" # admin_user = "azureuser" # location = "eastus" login_email = "login.email@example.com" diff --git a/gcp/main.tf b/gcp/main.tf index 0ed263f..da49709 100644 --- a/gcp/main.tf +++ b/gcp/main.tf @@ -1,7 +1,6 @@ # Configure Google Cloud provider provider "google" { - # credentials = file("${var.credentials}") # not working - credentials = file("/path/to/key.json") + credentials = file(var.credentials) project = var.project_id region = var.region } diff --git a/gcp/terraform.tfvars b/gcp/terraform.tfvars index 54303b1..1d42ce1 100644 --- a/gcp/terraform.tfvars +++ b/gcp/terraform.tfvars @@ -1,6 +1,6 @@ -# credentials = "Not working. Sorry. Manually edit in main.tf" +credentials = "" # disk_size = 32 -# login_email = "login.email@example.com" +login_email = "login.email@example.com" # machine_type = "e2-standard-8" project_id = "" # region = "us-east1" diff --git a/gcp/variables.tf b/gcp/variables.tf index 473b0b5..afda1f4 100644 --- a/gcp/variables.tf +++ b/gcp/variables.tf @@ -1,7 +1,7 @@ -# variable "credentials" { -# description = "Path to the service account key file." -# type = string -# } +variable "credentials" { + description = "Path to the service account key file." + type = string +} variable "disk_size" { description = "The disk size (in GB) for the instance."