Skip to content

Commit

Permalink
add instructions in doc index (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyangyu authored Nov 23, 2022
1 parent a9e8fbf commit 1eaf7fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ description: |-
## Example Usage

```terraform
# We provide a full example in README https://github.com/tidbcloud/terraform-provider-tidbcloud#using-the-provider
terraform {
required_providers {
tidbcloud = {
Expand All @@ -25,6 +23,11 @@ terraform {
required_version = ">= 1.0.0"
}
# Instructions for getting an API Key
# https://docs.pingcap.com/tidbcloud/api/v1beta#section/Authentication/API-Key-Management
# You can also pass the keys through environment variables:
# export TIDBCLOUD_PUBLIC_KEY = "fake_public_key"
# export TIDBCLOUD_PRIVATE_KEY = "fake_private_key"
provider "tidbcloud" {
public_key = "fake_public_key"
private_key = "fake_private_key"
Expand Down
9 changes: 6 additions & 3 deletions examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# We provide a full example in README https://github.com/tidbcloud/terraform-provider-tidbcloud#using-the-provider

terraform {
required_providers {
tidbcloud = {
Expand All @@ -10,7 +8,12 @@ terraform {
required_version = ">= 1.0.0"
}

# Instructions for getting an API Key
# https://docs.pingcap.com/tidbcloud/api/v1beta#section/Authentication/API-Key-Management
# You can also pass the keys through environment variables:
# export TIDBCLOUD_PUBLIC_KEY = "fake_public_key"
# export TIDBCLOUD_PRIVATE_KEY = "fake_private_key"
provider "tidbcloud" {
public_key = "fake_public_key"
private_key = "fake_private_key"
}
}

0 comments on commit 1eaf7fc

Please sign in to comment.