Skip to content

Commit 05f5800

Browse files
committed
docs: replace example that requires TFC
1 parent 07ff38b commit 05f5800

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/resources/coderd_template/resource.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Provider populated from environment variables
22
provider "coderd" {}
33

4-
// Get the commit SHA of the configuration's git repository
5-
variable "TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA" {
4+
// Can be populated using an environment variable, or an external datasource script
5+
variable "COMMIT_SHA" {
66
type = string
77
}
88

@@ -17,12 +17,12 @@ resource "coderd_template" "ubuntu-main" {
1717
description = "The main template for developing on Ubuntu."
1818
versions = [
1919
{
20-
name = "stable-${var.TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA}"
20+
name = "stable-${var.COMMIT_SHA}"
2121
description = "The stable version of the template."
2222
directory = "./stable-template"
2323
},
2424
{
25-
name = "staging-${var.TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA}"
25+
name = "staging-${var.COMMIT_SHA}"
2626
description = "The staging version of the template."
2727
directory = "./staging-template"
2828
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy