GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation uploads a Terraform module version file to a specified project in GitLab. It is useful for automating the publishing of Terraform modules to GitLab's package registry, enabling infrastructure as code workflows to be integrated with CI/CD pipelines. For example, a DevOps engineer can use this node to programmatically upload new versions of Terraform modules after successful builds.

Use Case Examples

  1. Uploading a new version of a Terraform module file to a GitLab project to make it available for use in infrastructure deployments.
  2. Automating the release process of Terraform modules by integrating this node in a workflow that triggers on code commits or tags.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to GET but set to PUT for this operation.
Parameter Schema Defines the parameters required for the API call, including project ID, module name, module system, module version, and the file to upload.
Path Parameters Collection of path parameters including project ID, module name, and module system used to construct the API endpoint path.

Output

JSON

  • id - The ID of the uploaded Terraform module version file or related resource identifier.
  • status - The status of the upload operation, e.g., success or failure.
  • message - Additional information or message returned from the API after the upload.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID, module name, module system, and module version are correctly specified; incorrect values will cause API errors.
  • Verify that the file to upload is correctly provided and accessible; missing or invalid files will cause upload failures.
  • Authentication errors may occur if the GitLab API token is missing, expired, or lacks necessary permissions; ensure valid credentials are used.

Links

Discussion