Skip to content

Commit 9f47e89

Browse files
authored
chore: Add configurable cloud connector image in example (#135)
1 parent 1b30bde commit 9f47e89

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

examples/single-project/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ module "secure-for-cloud_example_single-project" {
110110
|------|-------------|------|---------|:--------:|
111111
| <a name="input_benchmark_regions"></a> [benchmark\_regions](#input\_benchmark\_regions) | List of regions in which to run the benchmark. If empty, the task will contain all regions by default. | `list(string)` | `[]` | no |
112112
| <a name="input_benchmark_role_name"></a> [benchmark\_role\_name](#input\_benchmark\_role\_name) | The name of the Service Account that will be created. | `string` | `"sysdigcloudbench"` | no |
113+
| <a name="input_cloud_connector_image"></a> [cloud\_connector\_image](#input\_cloud\_connector\_image) | The image to use for the Cloud Connector. | `string` | `"us-docker.pkg.dev/sysdig-public-registry/secure-for-cloud/cloud-connector:latest"` | no |
113114
| <a name="input_deploy_benchmark"></a> [deploy\_benchmark](#input\_deploy\_benchmark) | whether benchmark module is to be deployed | `bool` | `true` | no |
114115
| <a name="input_deploy_scanning"></a> [deploy\_scanning](#input\_deploy\_scanning) | true/false whether scanning module is to be deployed | `bool` | `false` | no |
115116
| <a name="input_name"></a> [name](#input\_name) | Suffix to be assigned to all created resources. Modify this value in case of conflict / 409 error to bypass Google soft delete issues | `string` | `"sfc"` | no |

examples/single-project/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ module "cloud_connector" {
4040
cloud_connector_sa_email = google_service_account.connector_sa.email
4141
connector_pubsub_topic_id = module.connector_project_sink.pubsub_topic_id
4242
secure_api_token_secret_id = module.secure_secrets.secure_api_token_secret_name
43+
image_name = var.cloud_connector_image
4344

4445
deploy_scanning = var.deploy_scanning
4546
}

examples/single-project/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ variable "benchmark_role_name" {
3131
default = "sysdigcloudbench"
3232
}
3333

34+
variable "cloud_connector_image" {
35+
type = string
36+
description = "The image to use for the Cloud Connector."
37+
default = "us-docker.pkg.dev/sysdig-public-registry/secure-for-cloud/cloud-connector:latest"
38+
}
39+
3440

3541
#
3642
# general

0 commit comments

Comments
 (0)