File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
examples/resources/gitlab_cluster_agent_token Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,13 @@ data "gitlab_project" "this" {
38
38
}
39
39
40
40
resource "gitlab_cluster_agent" "this" {
41
- project = data.gitlab_project.this
41
+ project = data.gitlab_project.this.id
42
42
name = "my-agent"
43
43
}
44
44
45
45
resource "gitlab_cluster_agent_token" "this" {
46
- project = data.gitlab_project.this
47
- agent_id = gitlab_cluster_agent.this.id
46
+ project = data.gitlab_project.this.id
47
+ agent_id = gitlab_cluster_agent.this.agent_id
48
48
name = "my-agent-token"
49
49
description = "Token for the my-agent used with `gitlab-agent` Helm Chart"
50
50
}
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ data "gitlab_project" "this" {
14
14
}
15
15
16
16
resource "gitlab_cluster_agent" "this" {
17
- project = data. gitlab_project . this
17
+ project = data. gitlab_project . this . id
18
18
name = " my-agent"
19
19
}
20
20
21
21
resource "gitlab_cluster_agent_token" "this" {
22
- project = data. gitlab_project . this
23
- agent_id = gitlab_cluster_agent. this . id
22
+ project = data. gitlab_project . this . id
23
+ agent_id = gitlab_cluster_agent. this . agent_id
24
24
name = " my-agent-token"
25
25
description = " Token for the my-agent used with `gitlab-agent` Helm Chart"
26
26
}
You can’t perform that action at this time.
0 commit comments