Skip to content

Commit 29ee02a

Browse files
authored
Merge pull request #5 from appwrite/CLO-4192-add-more-product-specific-resources
feat: add `storage_file`, `messaging_subscriber` and `webhook` resources
2 parents 442e57e + 4d15b19 commit 29ee02a

53 files changed

Lines changed: 1259 additions & 58 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ If an environment variable is provided, then the option does not need to be set
3939
| endpoint | `APPWRITE_ENDPOINT` | yes | The Appwrite API endpoint |
4040
| project_id | `APPWRITE_PROJECT_ID` | yes | The Appwrite project ID |
4141
| api_key | `APPWRITE_API_KEY` | yes | The Appwrite API key |
42-
| self_signed | | no | Accept self-signed certificates (for community edition)|
42+
| self_signed | N/A | no | Accept self-signed certificates (for community edition) |
4343

4444
## Resources
4545

@@ -51,11 +51,14 @@ If an environment variable is provided, then the option does not need to be set
5151
| `appwrite_tablesdb_index` | Table index |
5252
| `appwrite_tablesdb_row` | Table row |
5353
| `appwrite_storage_bucket` | Storage bucket |
54+
| `appwrite_storage_file` | Storage file |
5455
| `appwrite_backup_policy` | Backup policy |
5556
| `appwrite_messaging_provider` | Messaging provider |
5657
| `appwrite_messaging_topic` | Messaging topic |
58+
| `appwrite_messaging_subscriber` | Messaging subscriber |
5759
| `appwrite_auth_user` | User |
5860
| `appwrite_auth_team` | Team |
61+
| `appwrite_webhook` | Webhook |
5962

6063

6164
## Data Sources

docs/data-sources/tablesdb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
page_title: "appwrite_tablesdb Data Source"
2+
page_title: "Data Source: appwrite_tablesdb"
33
description: |-
44
Fetches an Appwrite database by ID.
55
---
66

7-
# appwrite_tablesdb (Data Source)
7+
# Data Source: appwrite_tablesdb
88

99
Fetches an Appwrite database by ID.
1010

docs/resources/auth_team.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
page_title: "appwrite_auth_team Resource"
2+
page_title: "Resource: appwrite_auth_team"
33
description: |-
44
Manages an Appwrite team.
55
---
66

7-
# appwrite_auth_team (Resource)
7+
# Resource: appwrite_auth_team
88

99
Manages an Appwrite team.
1010

docs/resources/auth_user.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
page_title: "appwrite_auth_user Resource"
2+
page_title: "Resource: appwrite_auth_user"
33
description: |-
44
Manages an Appwrite user.
55
---
66

7-
# appwrite_auth_user (Resource)
7+
# Resource: appwrite_auth_user
88

99
Manages an Appwrite user.
1010

docs/resources/backup_policy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
page_title: "appwrite_backup_policy Resource"
2+
page_title: "Resource: appwrite_backup_policy"
33
description: |-
44
Manages an Appwrite backup policy.
55
---
66

7-
# appwrite_backup_policy (Resource)
7+
# Resource: appwrite_backup_policy
88

99
Manages an Appwrite backup policy.
1010

docs/resources/messaging_provider.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
page_title: "appwrite_messaging_provider Resource"
2+
page_title: "Resource: appwrite_messaging_provider"
33
description: |-
44
Manages an Appwrite messaging provider.
55
---
66

7-
# appwrite_messaging_provider (Resource)
7+
# Resource: appwrite_messaging_provider
88

99
Manages an Appwrite messaging provider.
1010

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
page_title: "Resource: appwrite_messaging_subscriber"
3+
description: |-
4+
Manages a subscriber to an Appwrite messaging topic.
5+
---
6+
7+
# Resource: appwrite_messaging_subscriber
8+
9+
Manages a subscriber to an Appwrite messaging topic.
10+
11+
## Example Usage
12+
13+
```terraform
14+
resource "appwrite_messaging_topic" "announcements" {
15+
name = "announcements"
16+
}
17+
18+
resource "appwrite_messaging_subscriber" "user_email" {
19+
topic_id = appwrite_messaging_topic.announcements.id
20+
target_id = "user-email-target-id"
21+
}
22+
```
23+
24+
<!-- schema generated by tfplugindocs -->
25+
## Schema
26+
27+
### Required
28+
29+
- `target_id` (String) The target ID (e.g. a user's email or push target).
30+
- `topic_id` (String) The topic ID to subscribe to.
31+
32+
### Optional
33+
34+
- `id` (String) The subscriber ID.
35+
36+
### Read-Only
37+
38+
- `created_at` (String) The subscriber creation timestamp in ISO 8601 format.
39+
- `updated_at` (String) The subscriber last update timestamp in ISO 8601 format.
40+
41+
## Import
42+
43+
Import is supported using the following syntax:
44+
45+
```shell
46+
terraform import appwrite_messaging_subscriber.user_email <topic-id>/<subscriber-id>
47+
```
48+
49+
## See Also
50+
51+
- [appwrite_messaging_topic](messaging_topic.md) - Manage messaging topics
52+
- [appwrite_messaging_provider](messaging_provider.md) - Manage messaging providers
53+
- [appwrite_auth_user](auth_user.md) - Manage users

docs/resources/messaging_topic.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
page_title: "appwrite_messaging_topic Resource"
2+
page_title: "Resource: appwrite_messaging_topic"
33
description: |-
44
Manages an Appwrite messaging topic.
55
---
66

7-
# appwrite_messaging_topic (Resource)
7+
# Resource: appwrite_messaging_topic
88

99
Manages an Appwrite messaging topic.
1010

@@ -56,3 +56,4 @@ terraform import appwrite_messaging_topic.announcements <topic-id>
5656
- [appwrite_messaging_provider](messaging_provider.md) - Manage messaging providers
5757
- [appwrite_auth_user](auth_user.md) - Manage users for topic subscriptions
5858
- [appwrite_auth_team](auth_team.md) - Manage teams for topic subscriptions
59+
- [appwrite_messaging_subscriber](messaging_subscriber.md) - Manage topic subscribers

docs/resources/storage_bucket.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
page_title: "appwrite_storage_bucket Resource"
2+
page_title: "Resource: appwrite_storage_bucket"
33
description: |-
44
Manages an Appwrite storage bucket.
55
---
66

7-
# appwrite_storage_bucket (Resource)
7+
# Resource: appwrite_storage_bucket
88

99
Manages an Appwrite storage bucket.
1010

@@ -63,3 +63,7 @@ Import is supported using the following syntax:
6363
```shell
6464
terraform import appwrite_storage_bucket.uploads <bucket-id>
6565
```
66+
67+
## See Also
68+
69+
- [appwrite_storage_file](storage_file.md) - Manage files within a bucket

docs/resources/storage_file.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
page_title: "Resource: appwrite_storage_file"
3+
description: |-
4+
Manages a file in an Appwrite storage bucket.
5+
---
6+
7+
# Resource: appwrite_storage_file
8+
9+
Manages a file in an Appwrite storage bucket.
10+
11+
## Example Usage
12+
13+
```terraform
14+
resource "appwrite_storage_bucket" "assets" {
15+
name = "assets"
16+
}
17+
18+
resource "appwrite_storage_file" "logo" {
19+
bucket_id = appwrite_storage_bucket.assets.id
20+
name = "logo.png"
21+
file_path = "assets/logo.png"
22+
}
23+
24+
resource "appwrite_storage_file" "config" {
25+
bucket_id = appwrite_storage_bucket.assets.id
26+
name = "config.json"
27+
file_path = "assets/config.json"
28+
permissions = ["read(\"any\")"]
29+
}
30+
```
31+
32+
<!-- schema generated by tfplugindocs -->
33+
## Schema
34+
35+
### Required
36+
37+
- `bucket_id` (String) The bucket ID.
38+
- `file_path` (String) The local path to the file to upload.
39+
40+
### Optional
41+
42+
- `id` (String) The file ID.
43+
- `name` (String) The file name.
44+
- `permissions` (List of String) File permissions.
45+
46+
### Read-Only
47+
48+
- `created_at` (String) The file creation timestamp in ISO 8601 format.
49+
- `mime_type` (String) The file MIME type.
50+
- `size_original` (Number) The original file size in bytes.
51+
- `updated_at` (String) The file last update timestamp in ISO 8601 format.
52+
53+
## Import
54+
55+
Import is supported using the following syntax:
56+
57+
```shell
58+
terraform import appwrite_storage_file.logo <bucket-id>/<file-id>
59+
```
60+
61+
## See Also
62+
63+
- [appwrite_storage_bucket](storage_bucket.md) - Manage storage buckets

0 commit comments

Comments
 (0)