GitLab API

GitlabTool

Actions905

Overview

This node operation fetches a specific Terraform module version download from the GitLab API. It is useful for automating the retrieval of Terraform modules hosted on GitLab, enabling infrastructure as code workflows to programmatically access module versions for deployment or analysis.

Use Case Examples

  1. Automatically download a specific version of a Terraform module from GitLab to integrate into a CI/CD pipeline.
  2. Fetch the latest version of a Terraform module for validation or testing purposes within an infrastructure automation workflow.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use if authentication is not skipped.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request.
Query Parameters Query parameters for the API request, specifically the module version to download.
Path Parameters Path parameters required to specify the Terraform module in the API request.

Output

JSON

  • downloadUrl - The URL to download the specified Terraform module version.
  • statusCode - HTTP status code of the API response.
  • headers - Headers returned in the API response.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the module_namespace, module_name, module_system, and module_version parameters are correctly specified; incorrect values will result in API errors or no data.
  • If authentication is enabled, verify that the GitLab API token is valid and has sufficient permissions to access the Terraform modules.
  • Network connectivity issues to the GitLab instance can cause request failures; check network settings and baseUrl configuration.

Links

Discussion