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

Commit05f5800

Browse files
committed
docs: replace example that requires TFC
1 parent07ff38b commit05f5800

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)

[8]ページ先頭

©2009-2025 Movatter.jp