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: main page documentation #355

Merged
merged 2 commits into from
May 1, 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
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 }}