Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7bbfc7f

Browse files
docs: replace example that requires TFC (#114)
1 parent07ff38b commit7bbfc7f

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)

[8]ページ先頭

©2009-2025 Movatter.jp