|
1 | 1 | locals { |
2 | | - verify_ssl = length(regexall("^https://.*?\\.sysdig.com/?", data.sysdig_secure_connection.current.secure_url)) != 0 |
3 | | - connector_filter = <<EOT |
| 2 | + verify_ssl = length(regexall("^https://.*?\\.sysdig.com/?", data.sysdig_secure_connection.current.secure_url)) != 0 |
| 3 | + connector_filter = <<EOT |
4 | 4 | logName=~"/logs/cloudaudit.googleapis.com%2Factivity$" AND -resource.type="k8s_cluster" |
5 | 5 | EOT |
6 | | - repository_project_ids = var.deploy_scanning ? length(var.repository_project_ids) == 0 ? [for p in data.google_projects.all_projects.projects : p.project_id] : var.repository_project_ids : [] |
| 6 | + repository_project_ids = var.deploy_scanning ? length(var.repository_project_ids) == 0 ? [ |
| 7 | + for p in data.google_projects.all_projects.projects : p.project_id |
| 8 | + ] : var.repository_project_ids : [] |
7 | 9 | } |
8 | 10 |
|
9 | 11 | data "google_organization" "org" { |
@@ -67,13 +69,13 @@ module "secure_secrets" { |
67 | 69 | module "cloud_connector" { |
68 | 70 | source = "../../modules/services/cloud-connector" |
69 | 71 |
|
70 | | - cloud_connector_sa_email = google_service_account.connector_sa.email |
71 | | - sysdig_secure_endpoint = data.sysdig_secure_connection.current.secure_url |
72 | | - sysdig_secure_api_token = data.sysdig_secure_connection.current.secure_api_token |
73 | | - connector_pubsub_topic_id = module.connector_organization_sink.pubsub_topic_id |
74 | | - secure_api_token_secret_id = module.secure_secrets.secure_api_token_secret_name |
75 | | - max_instances = var.max_instances |
76 | | - project_id = data.google_client_config.current.project |
| 72 | + cloud_connector_sa_email = google_service_account.connector_sa.email |
| 73 | + sysdig_secure_endpoint = data.sysdig_secure_connection.current.secure_url |
| 74 | + sysdig_secure_api_token_secret_id = module.secure_secrets.secure_api_token_secret_name |
| 75 | + connector_pubsub_topic_id = module.connector_organization_sink.pubsub_topic_id |
| 76 | + secure_api_token_secret_id = module.secure_secrets.secure_api_token_secret_name |
| 77 | + max_instances = var.max_instances |
| 78 | + project_id = data.google_client_config.current.project |
77 | 79 |
|
78 | 80 | #defaults |
79 | 81 | name = "${var.name}-cloudconnector" |
|
0 commit comments