github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/gitlab/index.html.markdown (about) 1 --- 2 layout: "gitlab" 3 page_title: "Provider: GitLab" 4 sidebar_current: "docs-gitlab-index" 5 description: |- 6 The GitLab provider is used to interact with GitLab organization resources. 7 --- 8 9 # GitLab Provider 10 11 The GitLab provider is used to interact with GitLab organization resources. 12 13 The provider allows you to manage your GitLab organization's members and teams easily. 14 It needs to be configured with the proper credentials before it can be used. 15 16 Use the navigation to the left to read about the available resources. 17 18 ## Example Usage 19 20 ```hcl 21 # Configure the GitLab Provider 22 provider "gitlab" { 23 token = "${var.github_token}" 24 } 25 26 # Add a project to the organization 27 resource "gitlab_project" "sample_project" { 28 ... 29 } 30 ``` 31 32 ## Argument Reference 33 34 The following arguments are supported in the `provider` block: 35 36 * `token` - (Optional) This is the GitLab personal access token. It must be provided, but 37 it can also be sourced from the `GITLAB_TOKEN` environment variable. 38 39 * `base_url` - (Optional) This is the target GitLab base API endpoint. Providing a value is a 40 requirement when working with GitLab CE or GitLab Enterprise. It is optional to provide this value and 41 it can also be sourced from the `GITLAB_BASE_URL` environment variable. The value must end with a slash.