GitLab API icon

GitLab API

Gitlab

Actions1062

Terraform_registry → putApiV4ProjectsIdPackagesTerraformModulesModuleNameModuleSystem*moduleVersionFile

AI-generated

Summary

Uploads a Terraform module package file to a GitLab project's Terraform registry.

Inputs

  • id (required) — The ID or full path of the GitLab project.
  • module_name (required) — Name of the Terraform module.
  • module_system (required) — Module system, e.g., 'aws' or 'azurerm'.
  • module_version (required) — Version of the module to publish.
  • file (required) — The package file to upload (generated by Multipart middleware).
  • skipAuthentication — If set, skips authentication (not recommended).
  • baseUrl — Base URL of the GitLab instance (default: https://gitlab.com).

Output shape

object

Returns the GitLab API response with details of the uploaded package.

Examples

Example 1: Publishing a new version of a Terraform module

Set project ID/path, module name, module system, version, and attach the compiled module file.

Links

Discussion