Skip to content

Commit f821d59

Browse files
Merge pull request #456 from svenstaro/patch-1
Remove old-style variable interpolation
2 parents 21ad328 + d0983b5 commit f821d59

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Use the navigation to the left to read about the available resources.
1111
```hcl
1212
# Configure the GitLab Provider
1313
provider "gitlab" {
14-
token = "${var.gitlab_token}"
14+
token = var.gitlab_token
1515
}
1616
1717
# Add a project owned by the user
@@ -21,20 +21,20 @@ resource "gitlab_project" "sample_project" {
2121
2222
# Add a hook to the project
2323
resource "gitlab_project_hook" "sample_project_hook" {
24-
project = "${gitlab_project.sample_project.id}"
24+
project = gitlab_project.sample_project.id
2525
url = "https://example.com/project_hook"
2626
}
2727
2828
# Add a variable to the project
2929
resource "gitlab_project_variable" "sample_project_variable" {
30-
project = "${gitlab_project.sample_project.id}"
30+
project = gitlab_project.sample_project.id
3131
key = "project_variable_key"
3232
value = "project_variable_value"
3333
}
3434
3535
# Add a deploy key to the project
3636
resource "gitlab_deploy_key" "sample_deploy_key" {
37-
project = "${gitlab_project.sample_project.id}"
37+
project = gitlab_project.sample_project.id
3838
title = "terraform example"
3939
key = "ssh-rsa AAAA..."
4040
}
@@ -49,7 +49,7 @@ resource "gitlab_group" "sample_group" {
4949
# Add a project to the group - example/example
5050
resource "gitlab_project" "sample_group_project" {
5151
name = "example"
52-
namespace_id = "${gitlab_group.sample_group.id}"
52+
namespace_id = gitlab_group.sample_group.id
5353
}
5454
```
5555

0 commit comments

Comments
 (0)