Skip to content

Commit 7bbfc7f

Browse files
docs: replace example that requires TFC (#114)
1 parent 07ff38b commit 7bbfc7f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/resources/template.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ When importing, the ID supplied can be either a template UUID retrieved via the
2222
// Provider populated from environment variables
2323
provider "coderd" {}
2424
25-
// Get the commit SHA of the configuration's git repository
26-
variable "TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA" {
25+
// Can be populated using an environment variable, or an external datasource script
26+
variable "COMMIT_SHA" {
2727
type = string
2828
}
2929
@@ -38,12 +38,12 @@ resource "coderd_template" "ubuntu-main" {
3838
description = "The main template for developing on Ubuntu."
3939
versions = [
4040
{
41-
name = "stable-${var.TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA}"
41+
name = "stable-${var.COMMIT_SHA}"
4242
description = "The stable version of the template."
4343
directory = "./stable-template"
4444
},
4545
{
46-
name = "staging-${var.TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA}"
46+
name = "staging-${var.COMMIT_SHA}"
4747
description = "The staging version of the template."
4848
directory = "./staging-template"
4949
}

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