We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent07ff38b commit05f5800Copy full SHA for 05f5800
examples/resources/coderd_template/resource.tf
@@ -1,8 +1,8 @@
1
// Provider populated from environment variables
2
provider"coderd" {}
3
4
-//Get the commit SHA of the configuration's git repository
5
-variable"TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA" {
+//Can be populated using an environment variable, or an external datasource script
+variable"COMMIT_SHA" {
6
type=string
7
}
8
@@ -17,12 +17,12 @@ resource "coderd_template" "ubuntu-main" {
17
description="The main template for developing on Ubuntu."
18
versions=[
19
{
20
- name="stable-${var.TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA}"
+ name="stable-${var.COMMIT_SHA}"
21
description="The stable version of the template."
22
directory="./stable-template"
23
},
24
25
- name="staging-${var.TFC_CONFIGURATION_VERSION_GIT_COMMIT_SHA}"
+ name="staging-${var.COMMIT_SHA}"
26
description="The staging version of the template."
27
directory="./staging-template"
28