Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: env0_template import issue github_installation_id #406

Merged
merged 2 commits into from
Jun 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

terraform fmt...

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