{"id":18592596,"url":"https://github.com/bytebase/terraform-provider-bytebase","last_synced_at":"2026-01-16T15:56:00.590Z","repository":{"id":63938133,"uuid":"568610129","full_name":"bytebase/terraform-provider-bytebase","owner":"bytebase","description":"Terraform Bytebase provider ","archived":false,"fork":false,"pushed_at":"2025-03-18T07:16:50.000Z","size":766,"stargazers_count":7,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-03T01:53:25.659Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bytebase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-21T02:41:40.000Z","updated_at":"2025-03-30T15:50:01.000Z","dependencies_parsed_at":"2024-06-20T21:52:04.326Z","dependency_job_id":"689d4333-0593-412e-896b-f2ef64842c70","html_url":"https://github.com/bytebase/terraform-provider-bytebase","commit_stats":{"total_commits":117,"total_committers":5,"mean_commits":23.4,"dds":0.1367521367521367,"last_synced_commit":"4a33fb2edd05c0ff8bccf71993bb4ad0093b3b13"},"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebase%2Fterraform-provider-bytebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebase%2Fterraform-provider-bytebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebase%2Fterraform-provider-bytebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebase%2Fterraform-provider-bytebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytebase","download_url":"https://codeload.github.com/bytebase/terraform-provider-bytebase/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248252691,"owners_count":21072699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T01:09:10.731Z","updated_at":"2026-01-16T15:56:00.579Z","avatar_url":"https://github.com/bytebase.png","language":"Go","readme":"# Terraform Provider Bytebase\n\nThis repository is the Terraform provider for [Bytebase](https://bytebase.com). A typical setup\ninvolves teams using Cloud vendors' Terraform provider to provision database instances, followed by\nusing Terraform Bytebase Provider to prepare those instances ready for application use.\n\n## Usage\n\n1. Download [provider](https://registry.terraform.io/providers/bytebase/bytebase).\n1. Follow [example](https://www.bytebase.com/docs/get-started/terraform).\n\n## Development\n\n### Prerequisites\n\n- [Go](https://golang.org/doc/install) (1.19 or later)\n- [Terraform](https://developer.hashicorp.com/terraform/downloads?product_intent=terraform) (1.3.5 or later)\n- [Bytebase](https://github.com/bytebase/bytebase) (3.13.0 or later)\n\n\u003e If you have problems running `terraform` in MacOS with Apple Silicon, you can following https://stackoverflow.com/questions/66281882/how-can-i-get-terraform-init-to-run-on-my-apple-silicon-macbook-pro-for-the-go and use the `tfenv`.\n\n### Prepare Bytebase OpenAPI server\n\n```bash\n# clone Bytebase to get the OpenAPI server\ngit clone git@github.com:bytebase/bytebase.git\n\ngit clone git@github.com:bytebase/terraform-provider-bytebase.git\n```\n\n```bash\n# start Bytebase OpenAPI server\ncd bytebase\n# check https://github.com/bytebase/bytebase for starting the Bytebase server.\nair -c scripts/.air.toml\n```\n\n### Build and test\n\n```bash\n# install the provider in your local machine\ncd terraform-provider-bytebase \u0026\u0026 make install\n\n# test\n# Any BYTEBASE_SERVICE_ACCOUNT/BYTEBASE_SERVICE_KEY/BYTEBASE_URL value should work since the service is mocked\nTF_ACC=1 BYTEBASE_SERVICE_ACCOUNT=test@service.bytebase.com BYTEBASE_SERVICE_KEY=test_secret BYTEBASE_URL=https://bytebase.example.com go test -v ./...\n\n# initialize the terraform for your example\n# you need to set the service_account and service_key to your own\ncd examples/setup \u0026\u0026 terraform init\n\n# check the changes\nterraform plan\n\n# apply the changes\nterraform apply\n\n# print outputs\nterraform output\n\n# delete test resources\nterraform destory\n```\n\n### Generate docs\n\n\u003e This will generate the doc template in the `docs` folder\n\u003e\n\u003e Check https://github.com/hashicorp/terraform-plugin-docs and https://github.com/hashicorp/terraform-plugin-docs/issues/141 for details.\n\n```bash\nGOOS=darwin GOARCH=amd64 go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs --provider-name=terraform-provider-bytebase\n```\n\n## Release\n\nFollow [this doc](https://developer.hashicorp.com/terraform/registry/providers/publishing) to publish the provider.\n\n\u003e Note:\n\u003e We need to publish a new tag for a new version, the tag must be a valid [Semantic Version](https://semver.org/) **preceded with a v (for example, v1.2.3)**. There must not be a branch name with the same name as the tag.\n\n1. Develop and merge the feature code.\n1. Create a new PR to update the version in [`./VERSION`](./VERSION)\n1. After the version is updated, the action [`./.github/workflows/release.yml`](./.github/workflows/release.yml) will use the newest version `x.y.z` to create a new tag `vx.y.z`, then use the tag to create the release.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytebase%2Fterraform-provider-bytebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytebase%2Fterraform-provider-bytebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytebase%2Fterraform-provider-bytebase/lists"}