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

⭐ support terraform discovery over gitlab #1976

Merged
merged 1 commit into from
Sep 29, 2023
Merged

Conversation

arlimus
Copy link
Member

@arlimus arlimus commented Sep 29, 2023

After #1975

cnquery run gitlab --group mondoolabs --project example-gitlab --discover terraform -c 'terraform.blocks'

This will only discover Terraform repos in the given group and project. If you omit the project, it will discover Terraform repos in all of the group's projects:

terraform.blocks: [
  0: terraform.block type="provider" labels=[
  0: "google"
]
  1: terraform.block type="resource" labels=[
  0: "google_service_account"
  1: "default"
]
  2: terraform.block type="resource" labels=[
  0: "google_compute_instance"
  1: "default"
]
...

Unlike v8, this also cleans up the temporary git repos on provider shutdown.

Follow-up: We have a general issue that calls connect twice on all providers right now, leading to double-clones of the git repo. This will be solved via connection re-use.

@arlimus arlimus force-pushed the dom/gitlab+td-disco branch 2 times, most recently from 2fed0f8 to 37b858b Compare September 29, 2023 08:02
```bash
cnquery run gitlab --group mondoolabs --project example-gitlab --discover terraform -c 'terraform.blocks'
```

Unlike v8, this also cleans up the temporary git repos on provider
shutdown.

Follow-up: We have a general issue that calls connect twice on all
providers right now, leading to double-clones of the git repo. This will
be solved via connection re-use.

Signed-off-by: Dominik Richter <[email protected]>
@chris-rock chris-rock merged commit c38e7e1 into main Sep 29, 2023
@chris-rock chris-rock deleted the dom/gitlab+td-disco branch September 29, 2023 09:09
@github-actions github-actions bot locked and limited conversation to collaborators Sep 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants