Skip to content

Commit 62e32de

Browse files
committed
chore: update example
1 parent 4d14d0e commit 62e32de

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

examples/roles/main.tf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
terraform {
2+
required_providers {
3+
bytebase = {
4+
version = "1.0.18"
5+
# For local development, please use "terraform.local/bytebase/bytebase" instead
6+
source = "registry.terraform.io/bytebase/bytebase"
7+
}
8+
}
9+
}
10+
11+
provider "bytebase" {
12+
# You need to replace the account and key with your Bytebase service account.
13+
service_account = "[email protected]"
14+
service_key = "bbs_BxVIp7uQsARl8nR92ZZV"
15+
# The Bytebase service URL. You can use the external URL in production.
16+
# Check the docs about external URL: https://www.bytebase.com/docs/get-started/install/external-url
17+
url = "https://bytebase.example.com"
18+
}
19+
20+
data "bytebase_role_list" "all" {
21+
}
22+
23+
output "all_roles" {
24+
value = data.bytebase_role_list.all
25+
}

0 commit comments

Comments
 (0)