GitLab

The GitLab provider for Pulumi can be used to provision any of the cloud resources available in GitLab. The GitLab provider must be configured with credentials to deploy and update resources in GitLab.

See the full API documentation for complete details of the available GitLab provider APIs.

Setup

The GitLab provider supports several options for providing access to GitLab credentials. See the GitLab setup page for details.

Example

const gitlab = require("@pulumi/gitlab")

const project = new gitlab.Project("my-project", {
  description: "example project created by Pulumi",
  visibilityLevel: "public",
});
import * as gitlab from "@pulumi/gitlab";

const project = new gitlab.Project("my-project", {
  description: "example project created by Pulumi",
  visibilityLevel: "public",
});
import pulumi_gitlab as gitlab

project = gitlab.Project("my-project",
  description="example project created by Pulumi",
  visibility_level="public",
)
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	gitlab "github.com/pulumi/pulumi-gitlab/sdk/v3/go/gitlab"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		project, err := gitlab.NewProject(ctx, "test", &gitlab.ProjectArgs{
			Description:     pulumi.String("example project created by Pulumi"),
			VisibilityLevel: pulumi.String("public"),
		})
		if err != nil {
			return err
		}

		return nil
	})
}
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Gitlab;

class Program
{
    static Task Main() =>
        Deployment.Run(() => {
            var project = new Project("test", new ProjectArgs
            {
                Description = "example project created by Pulumi",
                VisibilityLevel = "public",
            });
        });
}

Libraries

The following packages are available in packager managers:

The GitLab provider is open source and available in the pulumi/pulumi-gitlab repo.