Skip to content

Commit

Permalink
Chore: env0_template import issue github_installation_id (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Jun 2, 2022
1 parent 871d0e9 commit 26e99b9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion env0/resource_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions examples/resources/env0_environment/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 8 additions & 0 deletions examples/resources/env0_template/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 26e99b9

Please sign in to comment.