Skip to content

Commit 7ff6f97

Browse files
authored
chore: update docs and comments (#11)
1 parent 8b616c6 commit 7ff6f97

File tree

6 files changed

+18
-5
lines changed

6 files changed

+18
-5
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
This repository is the Terraform provider for Bytebase.
44

5+
## Usage
6+
7+
You can download this provider at [registry.terraform.io](https://registry.terraform.io/providers/bytebase/bytebase).
8+
9+
Please follow [Manage Bytebase with Terraform](https://www.bytebase.com/docs/get-started/terraform) to use the provider.
10+
511
## Development
612

713
### Prerequisites

docs/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ description: |-
1010

1111
This is the Bytebase Terraform provider to manage your Bytebase resources. For now we support manage the Bytebase instances and environments.
1212

13+
Please follow [Manage Bytebase with Terraform](https://www.bytebase.com/docs/get-started/terraform) to use the provider.
14+
1315
## Example Usage
1416

1517
> Require Terraform 0.13+
@@ -62,7 +64,7 @@ You can check [examples](https://github.com/bytebase/terraform-provider-bytebase
6264

6365
### Optional
6466

65-
- `url`: Required. The [external URL](/docs/get-started/install/external-url) for your Bytebase server. Alternatively, you can set `BYTEBASE_URL` environment variable.
67+
- `url`: Required. The [external URL](https://www.bytebase.com/docs/get-started/install/external-url) for your Bytebase server. Alternatively, you can set `BYTEBASE_URL` environment variable.
6668
- `service_account`: Required. The Bytebase service account email. The user must have **Owner** or **DBA** role. Alternatively, you can set `BYTEBASE_SERVICE_ACCOUNT` environment variable.
6769
- `service_key`: Required. The Bytebase service account key. Alternatively, you can set `BYTEBASE_SERVICE_KEY` environment variable.
6870

examples/environments/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ terraform {
22
required_providers {
33
bytebase = {
44
version = "0.0.3"
5-
source = "terraform.local/bytebase/bytebase"
5+
# For local development, please use "terraform.local/bytebase/bytebase" instead
6+
source = "registry.terraform.io/bytebase/bytebase"
67
}
78
}
89
}

examples/instances/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ terraform {
22
required_providers {
33
bytebase = {
44
version = "0.0.3"
5-
source = "terraform.local/bytebase/bytebase"
5+
# For local development, please use "terraform.local/bytebase/bytebase" instead
6+
source = "registry.terraform.io/bytebase/bytebase"
67
}
78
}
89
}

examples/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ provider "bytebase" {
1313
# You need to replace the account and key with your Bytebase service account.
1414
service_account = "[email protected]"
1515
service_key = "bbs_qHX6CswQ1nMMELSCc2lk"
16-
url = "https://bytebase.example.com"
16+
# The Bytebase service URL. You can use the external URL in production.
17+
# Check the docs about external URL: https://www.bytebase.com/docs/get-started/install/external-url
18+
url = "https://bytebase.example.com"
1719
}
1820

1921
locals {

examples/versions.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ terraform {
22
required_providers {
33
bytebase = {
44
version = "0.0.3"
5-
source = "terraform.local/bytebase/bytebase"
5+
# For local development, please use "terraform.local/bytebase/bytebase" instead
6+
source = "registry.terraform.io/bytebase/bytebase"
67
}
78
}
89
}

0 commit comments

Comments
 (0)