-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
As of 0.3.8 release I'm not able to complete a net new installation of GCP Agentless. During the terraform deployment I get the following error:
Error: local-exec provisioner error
with module.gcp-deployment.module.target-lacework-gcp-agentless[0].module.lacework_gcp_agentless_scanning_org_multi_region.terraform_data.execute_cloud_run_job[0],
on .terraform/modules/gcp-deployment.target-lacework-gcp-agentless.lacework_gcp_agentless_scanning_org_multi_region/main.tf line 427, in resource "terraform_data" "execute_cloud_run_job":
427: provisioner "local-exec" ***
Error running command 'gcloud run jobs execute lacework-awls-service-3c24
--region=***': exit status 1. Output: Creating execution...
failed
Executing job failed
ERROR: (gcloud.run.jobs.execute) NOT_FOUND: Resource
'lacework-awls-service-3c24' of kind 'JOB' in region '***' in project
'lwintqs-resources-93qv4oer' does not exist.
Rolling back to 0.3.7 allows the installation to complete.
Steps to reproduce
Install module in single project using the following configuration:
data "google_project" "project" {}
# integration
module "lacework_gcp_agentless" {
source = "lacework/agentless-scanning/gcp"
version = "0.3.8"
project_filter_list = [ data.google_project.project.project_id ]
integration_type = "PROJECT"
organization_id = ""
bucket_force_destroy = true
global = true
regional = true
lacework_integration_name = "agentless_from_terraform"
}
Expected behavior
Installation and setup of the google cloud run job completes successfully.
Please complete the following information):
- Terraform Version: 1.5.7
- Module Version 0.3.8
└── module.lacework_gcp_agentless
├── provider[registry.terraform.io/hashicorp/google] ~> 4.46
├── provider[registry.terraform.io/lacework/lacework] ~> 1.18
├── provider[terraform.io/builtin/terraform]
├── provider[registry.terraform.io/hashicorp/random]
└── module.lacework_agentless_scan_svc_account
├── provider[registry.terraform.io/hashicorp/google] >= 4.4.0, < 5.0.0
└── provider[registry.terraform.io/hashicorp/random]
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working