gitlab

The gitlab connection can be used to access GitLab resources.

connection "gitlab" "my_gitlab_token" {
token = "glpat-..."
}

Arguments

NameTypeRequired?Description
tokenStringOptionalAPI access token

All arguments are optional, and a gitlab connection with no arguments will behave the same as the default connection.

Default Connection

The gitlab connection type includes an implicit, default connection (connection.gitlab.default) that will be configured to set the token to the GITLAB_TOKEN environment variable.

connection "gitlab" "default" {
token = env("GITLAB_TOKEN")
}