GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves specific Terraform module information from a GitLab project's package registry using the GitLab API. It is useful for automating infrastructure management workflows by programmatically accessing Terraform modules stored in GitLab. For example, it can be used to fetch module details for deployment automation or version tracking in CI/CD pipelines.

Use Case Examples

  1. Fetch Terraform module details for a project to verify module version before deployment.
  2. Automate retrieval of Terraform module metadata for infrastructure auditing.

Properties

Name Meaning
Skip Authentication Option to bypass authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the API request, default is GET.
Parameter Schema Defines required path and query parameters for the API call, including project ID, module name, module system, module version, and optional terraform-get flag.
Query Parameters Collection of query parameters including module_version and terraform-get flag.
Path Parameters Collection of path parameters including project ID, module name, and module system.

Output

JSON

  • id - The ID or full path of the GitLab project.
  • module_name - Name of the Terraform module.
  • module_system - System type of the Terraform module (e.g., aws).
  • module_version - Version of the Terraform module.
  • terraform-get - Flag indicating Terraform get redirection.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID, module name, module system, and module version are correctly specified to avoid 404 errors.
  • If authentication is enabled, verify that the GitLab API key is valid and has sufficient permissions.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct.

Links

Discussion