Skip to content

Commit b21fb0b

Browse files
Merge pull request #24 from skysqlinc/multi-org-docs
multi-org guide
2 parents 2ceab4d + d99d2f6 commit b21fb0b

File tree

2 files changed

+128
-0
lines changed

2 files changed

+128
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
page_title: "Multi-Organization Support"
3+
description: |-
4+
Managing services across multiple SkySQL organizations
5+
---
6+
7+
# Multi-Organization Support
8+
9+
Version 3.2.0+ supports managing services across multiple organizations using the `org_id` parameter.
10+
11+
## Usage
12+
13+
### Single Organization (Default)
14+
15+
Omit `org_id` to use your API key's default organization:
16+
17+
```hcl
18+
resource "skysql_service" "my_service" {
19+
name = "my-database"
20+
service_type = "transactional"
21+
topology = "standalone"
22+
cloud_provider = "aws"
23+
region = "us-east-1"
24+
size = "sky-2x8"
25+
storage = 100
26+
ssl_enabled = true
27+
}
28+
```
29+
30+
### Multiple Organizations
31+
32+
Specify `org_id` for each service to manage across different organizations:
33+
34+
```hcl
35+
resource "skysql_service" "prod_db" {
36+
org_id = "org-12345-production"
37+
name = "prod-database"
38+
service_type = "transactional"
39+
topology = "standalone"
40+
cloud_provider = "aws"
41+
region = "us-east-1"
42+
size = "sky-4x16"
43+
storage = 500
44+
ssl_enabled = true
45+
}
46+
47+
resource "skysql_service" "dev_db" {
48+
org_id = "org-67890-development"
49+
name = "dev-database"
50+
service_type = "transactional"
51+
topology = "standalone"
52+
cloud_provider = "gcp"
53+
region = "us-central1"
54+
size = "sky-2x8"
55+
storage = 100
56+
ssl_enabled = true
57+
}
58+
```
59+
60+
## Important Notes
61+
62+
- **Changing `org_id` destroys and recreates the service**
63+
- Your API key must have access to all specified organizations
64+
- The parameter is optional - existing configurations continue to work
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
page_title: "Multi-Organization Support"
3+
description: |-
4+
Managing services across multiple SkySQL organizations
5+
---
6+
7+
# Multi-Organization Support
8+
9+
Version 3.2.0+ supports managing services across multiple organizations using the `org_id` parameter.
10+
11+
## Usage
12+
13+
### Single Organization (Default)
14+
15+
Omit `org_id` to use your API key's default organization:
16+
17+
```hcl
18+
resource "skysql_service" "my_service" {
19+
name = "my-database"
20+
service_type = "transactional"
21+
topology = "standalone"
22+
cloud_provider = "aws"
23+
region = "us-east-1"
24+
size = "sky-2x8"
25+
storage = 100
26+
ssl_enabled = true
27+
}
28+
```
29+
30+
### Multiple Organizations
31+
32+
Specify `org_id` for each service to manage across different organizations:
33+
34+
```hcl
35+
resource "skysql_service" "prod_db" {
36+
org_id = "org-12345-production"
37+
name = "prod-database"
38+
service_type = "transactional"
39+
topology = "standalone"
40+
cloud_provider = "aws"
41+
region = "us-east-1"
42+
size = "sky-4x16"
43+
storage = 500
44+
ssl_enabled = true
45+
}
46+
47+
resource "skysql_service" "dev_db" {
48+
org_id = "org-67890-development"
49+
name = "dev-database"
50+
service_type = "transactional"
51+
topology = "standalone"
52+
cloud_provider = "gcp"
53+
region = "us-central1"
54+
size = "sky-2x8"
55+
storage = 100
56+
ssl_enabled = true
57+
}
58+
```
59+
60+
## Important Notes
61+
62+
- **Changing `org_id` destroys and recreates the service**
63+
- Your API key must have access to all specified organizations
64+
- The parameter is optional - existing configurations continue to work

0 commit comments

Comments
 (0)