GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation fetches version information for a specific Terraform module from the GitLab Terraform Registry API. It is useful for users who want to retrieve details about available versions of a Terraform module identified by its namespace, name, and system type. For example, a DevOps engineer might use this node to programmatically check module versions before deploying infrastructure.

Use Case Examples

  1. Retrieve all versions of a Terraform module named 'example-module' under the namespace 'example-group' for the 'terraform' system.
  2. Automate version checks for Terraform modules in CI/CD pipelines to ensure the latest module versions are used.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, hidden if skipping authentication.
baseUrl The base URL of the GitLab instance to send the API request to.
Method The HTTP method used for the API request.
Path Parameters Parameters to specify the Terraform module namespace, name, and system type for the API request.

Output

JSON

  • version - Version information of the Terraform module.
  • id - Unique identifier of the module version.
  • status - Status of the module version.
  • created_at - Timestamp when the module version was created.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the module_namespace, module_name, and module_system path parameters are correctly set; missing or incorrect values will cause API errors.
  • If authentication is enabled, verify that the GitLab API token is valid and has sufficient permissions to access the Terraform Registry.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the API endpoint is reachable.

Links

Discussion