forked from gitlabhq/terraform-provider-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
resource.tf
58 lines (48 loc) · 1.2 KB
/
resource.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
resource "gitlab_project" "example" {
name = "example project"
description = "Lorem Ipsum"
visibility_level = "public"
}
resource "gitlab_user" "example" {
name = "example"
username = "example"
email = "example@example.com"
password = "example1$$$"
}
resource "gitlab_project_membership" "example" {
project_id = gitlab_project.example.id
user_id = gitlab_user.example.id
access_level = "developer"
}
resource "gitlab_project_milestone" "example" {
project = gitlab_project.example.id
title = "m1"
}
resource "gitlab_project_issue_board" "this" {
project = gitlab_project.example.id
name = "Test Issue Board"
lists {
assignee_id = gitlab_user.example.id
}
lists {
milestone_id = gitlab_project_milestone.example.milestone_id
}
depends_on = [
gitlab_project_membership.example
]
}
resource "gitlab_project_issue_board" "list_syntax" {
project = gitlab_project.example.id
name = "Test Issue Board with list syntax"
lists = [
{
assignee_id = gitlab_user.example.id
},
{
milestone_id = gitlab_project_milestone.example.milestone_id
}
]
depends_on = [
gitlab_project_membership.example
]
}