Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
update generated docs action committed Apr 28, 2022
1 parent 12008eb commit 1042df9
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions docs/data-sources/templates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "env0_templates Data Source - terraform-provider-env0"
subcategory: ""
description: |-
---

# env0_templates (Data Source)



## Example Usage

```terraform
data "env0_templates" "all_templates" {}
data "env0_template" "templates" {
for_each = toset(data.env0_templates.all_templates.names)
name = each.value
}
output "template1_name" {
value = data.env0_template.templates["Github Test-111"].name
}
output "template2_name" {
value = data.env0_template.templates["Github Test-222"].name
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- **id** (String) The ID of this resource.

### Read-Only

- **names** (List of String) list of all templates (by name)


0 comments on commit 1042df9

Please sign in to comment.