@@ -11,7 +11,7 @@ Use the navigation to the left to read about the available resources.
11
11
``` hcl
12
12
# Configure the GitLab Provider
13
13
provider "gitlab" {
14
- token = "${ var.gitlab_token}"
14
+ token = var.gitlab_token
15
15
}
16
16
17
17
# Add a project owned by the user
@@ -21,20 +21,20 @@ resource "gitlab_project" "sample_project" {
21
21
22
22
# Add a hook to the project
23
23
resource "gitlab_project_hook" "sample_project_hook" {
24
- project = "${ gitlab_project.sample_project.id}"
24
+ project = gitlab_project.sample_project.id
25
25
url = "https://example.com/project_hook"
26
26
}
27
27
28
28
# Add a variable to the project
29
29
resource "gitlab_project_variable" "sample_project_variable" {
30
- project = "${ gitlab_project.sample_project.id}"
30
+ project = gitlab_project.sample_project.id
31
31
key = "project_variable_key"
32
32
value = "project_variable_value"
33
33
}
34
34
35
35
# Add a deploy key to the project
36
36
resource "gitlab_deploy_key" "sample_deploy_key" {
37
- project = "${ gitlab_project.sample_project.id}"
37
+ project = gitlab_project.sample_project.id
38
38
title = "terraform example"
39
39
key = "ssh-rsa AAAA..."
40
40
}
@@ -49,7 +49,7 @@ resource "gitlab_group" "sample_group" {
49
49
# Add a project to the group - example/example
50
50
resource "gitlab_project" "sample_group_project" {
51
51
name = "example"
52
- namespace_id = "${ gitlab_group.sample_group.id}"
52
+ namespace_id = gitlab_group.sample_group.id
53
53
}
54
54
```
55
55
0 commit comments