GitLab API icon

GitLab API

Gitlab

Actions880

Overview

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

Use Case Examples

  1. Automatically download a specific version of a Terraform module during a CI/CD pipeline to ensure consistent infrastructure provisioning.
  2. Fetch the latest approved version of a Terraform module from GitLab's Terraform registry for use in automated infrastructure deployments.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request, defaulting to GET.
Query Parameters Query parameters for the API request, specifically the module version to download.
Path Parameters Path parameters for the API request identifying the module to download.

Output

Binary

The node outputs the downloaded Terraform module as binary data, suitable for saving or further processing.

JSON

  • statusCode - HTTP response status code indicating the result of the download request.
  • headers - HTTP response headers returned by the API.
  • body - The binary content of the downloaded Terraform module.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the module namespace, name, system, and version are correctly specified to avoid 404 errors.
  • If authentication is required, verify that the GitLab API credentials are valid and have sufficient permissions.
  • Check network connectivity and baseUrl correctness if the API request fails to reach the GitLab instance.

Links

Discussion