Skip to content

Commit

Permalink
Chore: main page documentation (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaronya committed May 1, 2022
1 parent e9272cd commit ee54312
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
16 changes: 14 additions & 2 deletions examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# Terraform 0.13+ uses the Terraform Registry:

terraform {
required_providers {
env0 = {
source = "env0/env0"
}
}
}

# Configure the env0 provider

provider "env0" {
api_key = var.env0_api_key # or use ENV0_API_KEY
api_secret = var.env0_api_secret # or use ENV0_API_SECRET
api_key = var.env0_api_key
api_secret = var.env0_api_secret
}
18 changes: 18 additions & 0 deletions templates/index.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
layout: ""
page_title: "Provider: env0"
description: |-
The env0 provider allows you to interact with the env0 API.
---

# env0 Provider

The [env0][https://www.env0.com] provider is used to interact with the resources supported by env0. The provider needs to be configured with proper credentials before it can be used. Please refer tho [this guide](https://developer.env0.com/docs/api/YXBpOjY4Njc2-env0-api#creating-an-api-key) on how to generate those credentials.

Use the navigation to the left to read about the available resources.

## Example Usage

{{tffile "examples/provider/provider.tf"}}

{{ .SchemaMarkdown | trimspace }}

0 comments on commit ee54312

Please sign in to comment.