Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/resources/cluster_agent_token.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ data "gitlab_project" "this" {
}

resource "gitlab_cluster_agent" "this" {
project = data.gitlab_project.this
project = data.gitlab_project.this.id
name = "my-agent"
}

resource "gitlab_cluster_agent_token" "this" {
project = data.gitlab_project.this
agent_id = gitlab_cluster_agent.this.id
project = data.gitlab_project.this.id
agent_id = gitlab_cluster_agent.this.agent_id
name = "my-agent-token"
description = "Token for the my-agent used with `gitlab-agent` Helm Chart"
}
Expand Down
6 changes: 3 additions & 3 deletions examples/resources/gitlab_cluster_agent_token/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ data "gitlab_project" "this" {
}

resource "gitlab_cluster_agent" "this" {
project = data.gitlab_project.this
project = data.gitlab_project.this.id
name = "my-agent"
}

resource "gitlab_cluster_agent_token" "this" {
project = data.gitlab_project.this
agent_id = gitlab_cluster_agent.this.id
project = data.gitlab_project.this.id
agent_id = gitlab_cluster_agent.this.agent_id
name = "my-agent-token"
description = "Token for the my-agent used with `gitlab-agent` Helm Chart"
}
Expand Down