From ab538402fa2f0cd3ab9ab7d0d2a965f95005519b Mon Sep 17 00:00:00 2001 From: Tomer Heber Date: Wed, 1 Jun 2022 08:09:08 -0500 Subject: [PATCH] Chore: env0_template import issue github_installation_id --- env0/resource_template.go | 2 +- examples/resources/env0_environment/resource.tf | 6 +++--- examples/resources/env0_template/resource.tf | 8 ++++++++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/env0/resource_template.go b/env0/resource_template.go index d145fb7a..46cf1ef7 100644 --- a/env0/resource_template.go +++ b/env0/resource_template.go @@ -78,7 +78,7 @@ func resourceTemplate() *schema.Resource { }, "repository": { Type: schema.TypeString, - Description: "git repository for the template source code", + Description: "git repository url for the template source code", Required: true, }, "path": { diff --git a/examples/resources/env0_environment/resource.tf b/examples/resources/env0_environment/resource.tf index c5278579..f6e6621a 100644 --- a/examples/resources/env0_environment/resource.tf +++ b/examples/resources/env0_environment/resource.tf @@ -13,9 +13,9 @@ resource "env0_environment" "example" { } resource "env0_environment" "example_with_hcl_configuration" { - name = "environment with hcl" - project_id = data.env0_project.default_project.id - template_id = data.env0_template.example.id + name = "environment with hcl" + project_id = data.env0_project.default_project.id + template_id = data.env0_template.example.id configuration { name = "TEST1234" diff --git a/examples/resources/env0_template/resource.tf b/examples/resources/env0_template/resource.tf index dad79aa6..9791a848 100644 --- a/examples/resources/env0_template/resource.tf +++ b/examples/resources/env0_template/resource.tf @@ -14,6 +14,14 @@ resource "env0_template" "example" { ssh_keys = [data.env0_ssh_key.my_key] } +resource "env0_template" "example_github_installation_id" { + name = "example" + description = "Example template" + repository = "https://github.com/env0/templates" + terraform_version = "1.1.9" + github_installation_id = 12223344 +} + resource "env0_template" "example_terragrunt" { name = "example - Terragrunt" description = "Example template with Terragrunt version"