GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation interacts with the GitLab API to download a specific Terraform module from the Terraform registry. It is useful for automating the retrieval of Terraform modules by specifying the module's namespace, name, and system. For example, it can be used in CI/CD pipelines to fetch the required Terraform modules dynamically before infrastructure deployment.

Use Case Examples

  1. Automate downloading a Terraform module from GitLab's Terraform registry by specifying the module namespace, name, and system.
  2. Integrate Terraform module retrieval into an infrastructure automation workflow to ensure the latest module version is used.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
baseUrl The base URL for the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to specify the Terraform module to download, including module_namespace (group's ID or slug), module_name, and module_system.

Output

Binary

The node outputs the downloaded Terraform module as binary data, suitable for saving as a file 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, module_name, and module_system path parameters are correctly specified; incorrect values will result in failed requests or 404 errors.
  • If authentication is required and Skip Authentication is false, ensure valid GitLab API credentials are provided to avoid authorization errors.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct and accessible.

Links

Discussion