From 5ad653949f50f8ff782fc0c17082782a57d8038a Mon Sep 17 00:00:00 2001 From: Jan Losinski Date: Fri, 11 Aug 2023 15:58:41 +0200 Subject: [PATCH] fix: correct gitauth documentation coder_git_auth is not a resource but a datasource. And the variable needs the data prefix. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ed6d615a..b774c54c 100644 --- a/README.md +++ b/README.md @@ -96,13 +96,13 @@ For access token-based authentication, follow the following schema (if empty, th If using envbuilder inside of [Coder](https://github.com/coder/coder), you can use the `coder_git_auth` Terraform resource to automatically provide this token on workspace creation: ```hcl -resource "coder_git_auth" "github" { +data "coder_git_auth" "github" { id = "github" } resource "docker_container" "dev" { env = [ - GIT_USERNAME = coder_git_auth.github.access_token, + GIT_USERNAME = data.coder_git_auth.github.access_token, ] } ```