File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1+ # This is an example for using bytebase terraform provider to manage your resource.
2+ # To run this provider in your local machine,
3+ # 1. Run your bytebase service, then you can access the OpenAPI via http://localhost:8080/v1
4+ # 2. Replace the email and password with your account
5+ # 3. Run `make install` under terraform-provider-bytebase folder
6+ # 4. Run `terraform init` under terraform-provider-bytebase/examples folder
7+ # 5. Run terraform plan or terraform apply
18terraform {
29 required_providers {
310 bytebase = {
411 version = " 0.0.1"
5- source = " registry.terraform.io/bytebase/bytebase"
12+ # The source is only used in this local example.
13+ source = " registry.terraform.io/bytebase/bytebase"
614 }
715 }
816}
917
1018provider "bytebase" {
19+ # You need to replace the email and password with your own bytebase account.
11201221 password = " ed"
1322 bytebase_url = " http://localhost:8080/v1"
Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ func TestAccEnvironment(t *testing.T) {
1616 envName := "dev"
1717
1818 resource .Test (t , resource.TestCase {
19- PreCheck : func () { testAccPreCheck (t ) },
19+ PreCheck : func () {
20+ testAccPreCheck (t )
21+ },
2022 Providers : testAccProviders ,
2123 CheckDestroy : testAccCheckEnvironmentDestroy ,
2224 Steps : []resource.TestStep {
You can’t perform that action at this time.
0 commit comments