Manage Bytebase with Terraform
Bytebase provides the Terraform Provider to let you manage your Bytebase resources via Terraform. Users can use Terraform provider to manage following Bytebase resources:
- Instance Role
- More to come
Create service account
Bytebase Terraform Provider needs a service account to interact with the Bytebase OpenAPI.
Visit Bytebase member management page (Click Settings on the navigation bar, and then click Workspace > Members).
Name your service account, and grant the Owner or DBA role to it.
After creation, you can copy the service key as
service_key and the email as
service_account to initialize the Bytbase provider in next step.
Configure Bytebase Terraform Provider
Check https://registry.terraform.io/providers/bytebase/bytebase/latest/docs for the provider docs.
Check https://github.com/bytebase/terraform-example for the usage examples.