Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: 0.3.8 fails with NOT_FOUND #66

Open
credibleforce opened this issue Apr 7, 2024 · 0 comments
Open

bug: 0.3.8 fails with NOT_FOUND #66

credibleforce opened this issue Apr 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@credibleforce
Copy link

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]
@credibleforce credibleforce added the bug Something isn't working label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant