diff --git a/docs/resources/cluster_agent_token.md b/docs/resources/cluster_agent_token.md index 7bb649039..d32cc78dd 100644 --- a/docs/resources/cluster_agent_token.md +++ b/docs/resources/cluster_agent_token.md @@ -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" } diff --git a/examples/resources/gitlab_cluster_agent_token/resource.tf b/examples/resources/gitlab_cluster_agent_token/resource.tf index e1d6f2777..ee0a33e7a 100644 --- a/examples/resources/gitlab_cluster_agent_token/resource.tf +++ b/examples/resources/gitlab_cluster_agent_token/resource.tf @@ -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" }