Skip to content

Commit 85de61f

Browse files
committed
Remove scaffolding framework and implement unstructured provider with resources and data sources for workflows, sources, and destinations. Update go.mod and go.sum for new dependencies, and add documentation for the unstructured provider. Include example configurations and tests for new resources.
1 parent edb20aa commit 85de61f

File tree

71 files changed

+64403
-892
lines changed

Some content is hidden

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

71 files changed

+64403
-892
lines changed

.copywrite.hcl

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @hashicorp/terraform-devex
1+
* @aws-gopher

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ website/vendor
3333

3434
# Keep windows files with windows line endings
3535
*.winfile eol=crlf
36+
terraform-provider-unstructured
37+
.terraformrc

.goreleaser.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Visit https://goreleaser.com for documentation on how to customize this
22
# behavior.
33
version: 2
4-
before:
5-
hooks:
6-
# this is just an example and not a requirement for provider building/publishing
7-
- go mod tidy
84
builds:
95
- env:
106
# goreleaser does not work with CGO, it could also complicate

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ To compile the provider, run `go install`. This will build the provider and put
5555

5656
To generate or update documentation, run `make generate`.
5757

58+
To regenerate the provider code from the split specification files, run:
59+
```shell
60+
go generate ./internal
61+
```
62+
63+
This will merge the specification files in `specs/` and generate the Go code.
64+
5865
In order to run the full suite of Acceptance tests, run `make testacc`.
5966

6067
*Note:* Acceptance tests create real resources, and often cost money to run.

doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package main
2+
3+
//go:generate go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-name unstructured

docs/data-sources/destination.md

Lines changed: 336 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,336 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "unstructured_destination Data Source - unstructured"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# unstructured_destination (Data Source)
10+
11+
12+
13+
14+
15+
<!-- schema generated by tfplugindocs -->
16+
## Schema
17+
18+
### Read-Only
19+
20+
- `astradb` (Attributes) (see [below for nested schema](#nestedatt--astradb))
21+
- `azure_ai_search` (Attributes) (see [below for nested schema](#nestedatt--azure_ai_search))
22+
- `couchbase` (Attributes) (see [below for nested schema](#nestedatt--couchbase))
23+
- `created_at` (String)
24+
- `databricks_volume_delta_tables` (Attributes) (see [below for nested schema](#nestedatt--databricks_volume_delta_tables))
25+
- `databricks_volumes` (Attributes) (see [below for nested schema](#nestedatt--databricks_volumes))
26+
- `delta_table` (Attributes) (see [below for nested schema](#nestedatt--delta_table))
27+
- `elasticsearch` (Attributes) (see [below for nested schema](#nestedatt--elasticsearch))
28+
- `gcs` (Attributes) (see [below for nested schema](#nestedatt--gcs))
29+
- `ibm_watsonx_s3` (Attributes) (see [below for nested schema](#nestedatt--ibm_watsonx_s3))
30+
- `id` (String) The ID of this resource.
31+
- `kafka_cloud` (Attributes) (see [below for nested schema](#nestedatt--kafka_cloud))
32+
- `milvus` (Attributes) (see [below for nested schema](#nestedatt--milvus))
33+
- `mongodb` (Attributes) (see [below for nested schema](#nestedatt--mongodb))
34+
- `motherduck` (Attributes) (see [below for nested schema](#nestedatt--motherduck))
35+
- `name` (String)
36+
- `neo4j` (Attributes) (see [below for nested schema](#nestedatt--neo4j))
37+
- `onedrive` (Attributes) (see [below for nested schema](#nestedatt--onedrive))
38+
- `pinecone` (Attributes) (see [below for nested schema](#nestedatt--pinecone))
39+
- `postgres` (Attributes) (see [below for nested schema](#nestedatt--postgres))
40+
- `qdrant_cloud` (Attributes) (see [below for nested schema](#nestedatt--qdrant_cloud))
41+
- `redis` (Attributes) (see [below for nested schema](#nestedatt--redis))
42+
- `s3` (Attributes) (see [below for nested schema](#nestedatt--s3))
43+
- `snowflake` (Attributes) (see [below for nested schema](#nestedatt--snowflake))
44+
- `updated_at` (String)
45+
- `weaviate_cloud` (Attributes) (see [below for nested schema](#nestedatt--weaviate_cloud))
46+
47+
<a id="nestedatt--astradb"></a>
48+
### Nested Schema for `astradb`
49+
50+
Read-Only:
51+
52+
- `api_endpoint` (String)
53+
- `batch_size` (Number)
54+
- `collection_name` (String)
55+
- `keyspace` (String)
56+
- `token` (String)
57+
58+
59+
<a id="nestedatt--azure_ai_search"></a>
60+
### Nested Schema for `azure_ai_search`
61+
62+
Read-Only:
63+
64+
- `endpoint` (String)
65+
- `index` (String)
66+
- `key` (String)
67+
68+
69+
<a id="nestedatt--couchbase"></a>
70+
### Nested Schema for `couchbase`
71+
72+
Read-Only:
73+
74+
- `batch_size` (Number)
75+
- `bucket` (String)
76+
- `collection` (String)
77+
- `connection_string` (String)
78+
- `password` (String)
79+
- `scope` (String)
80+
- `username` (String)
81+
82+
83+
<a id="nestedatt--databricks_volume_delta_tables"></a>
84+
### Nested Schema for `databricks_volume_delta_tables`
85+
86+
Read-Only:
87+
88+
- `catalog` (String)
89+
- `client_id` (String)
90+
- `client_secret` (String)
91+
- `database` (String)
92+
- `http_path` (String)
93+
- `schema` (String)
94+
- `server_hostname` (String)
95+
- `table_name` (String)
96+
- `token` (String)
97+
- `volume` (String)
98+
- `volume_path` (String)
99+
100+
101+
<a id="nestedatt--databricks_volumes"></a>
102+
### Nested Schema for `databricks_volumes`
103+
104+
Read-Only:
105+
106+
- `catalog` (String)
107+
- `client_id` (String)
108+
- `client_secret` (String)
109+
- `host` (String)
110+
- `schema` (String)
111+
- `volume` (String)
112+
- `volume_path` (String)
113+
114+
115+
<a id="nestedatt--delta_table"></a>
116+
### Nested Schema for `delta_table`
117+
118+
Read-Only:
119+
120+
- `aws_access_key_id` (String)
121+
- `aws_region` (String)
122+
- `aws_secret_access_key` (String)
123+
- `table_uri` (String)
124+
125+
126+
<a id="nestedatt--elasticsearch"></a>
127+
### Nested Schema for `elasticsearch`
128+
129+
Read-Only:
130+
131+
- `es_api_key` (String)
132+
- `hosts` (List of String)
133+
- `index_name` (String)
134+
135+
136+
<a id="nestedatt--gcs"></a>
137+
### Nested Schema for `gcs`
138+
139+
Read-Only:
140+
141+
- `remote_url` (String)
142+
- `service_account_key` (String)
143+
144+
145+
<a id="nestedatt--ibm_watsonx_s3"></a>
146+
### Nested Schema for `ibm_watsonx_s3`
147+
148+
Read-Only:
149+
150+
- `access_key_id` (String)
151+
- `catalog` (String)
152+
- `iam_api_key` (String)
153+
- `iceberg_endpoint` (String)
154+
- `max_retries` (Number)
155+
- `max_retries_connection` (Number)
156+
- `namespace` (String)
157+
- `object_storage_endpoint` (String)
158+
- `object_storage_region` (String)
159+
- `record_id_key` (String)
160+
- `secret_access_key` (String)
161+
- `table` (String)
162+
163+
164+
<a id="nestedatt--kafka_cloud"></a>
165+
### Nested Schema for `kafka_cloud`
166+
167+
Read-Only:
168+
169+
- `batch_size` (Number)
170+
- `bootstrap_servers` (String)
171+
- `group_id` (String)
172+
- `kafka_api_key` (String)
173+
- `port` (Number)
174+
- `secret` (String)
175+
- `topic` (String)
176+
177+
178+
<a id="nestedatt--milvus"></a>
179+
### Nested Schema for `milvus`
180+
181+
Read-Only:
182+
183+
- `collection_name` (String)
184+
- `db_name` (String)
185+
- `password` (String)
186+
- `record_id_key` (String)
187+
- `token` (String)
188+
- `uri` (String)
189+
- `user` (String)
190+
191+
192+
<a id="nestedatt--mongodb"></a>
193+
### Nested Schema for `mongodb`
194+
195+
Read-Only:
196+
197+
- `collection` (String)
198+
- `database` (String)
199+
- `uri` (String)
200+
201+
202+
<a id="nestedatt--motherduck"></a>
203+
### Nested Schema for `motherduck`
204+
205+
Read-Only:
206+
207+
- `account` (String)
208+
- `batch_size` (Number)
209+
- `database` (String)
210+
- `host` (String)
211+
- `password` (String)
212+
- `port` (Number)
213+
- `record_id_key` (String)
214+
- `role` (String)
215+
- `schema` (String)
216+
- `table_name` (String)
217+
- `user` (String)
218+
219+
220+
<a id="nestedatt--neo4j"></a>
221+
### Nested Schema for `neo4j`
222+
223+
Read-Only:
224+
225+
- `batch_size` (Number)
226+
- `database` (String)
227+
- `password` (String)
228+
- `uri` (String)
229+
- `username` (String)
230+
231+
232+
<a id="nestedatt--onedrive"></a>
233+
### Nested Schema for `onedrive`
234+
235+
Read-Only:
236+
237+
- `authority_url` (String)
238+
- `client_cred` (String)
239+
- `client_id` (String)
240+
- `remote_url` (String)
241+
- `tenant` (String)
242+
- `user_pname` (String)
243+
244+
245+
<a id="nestedatt--pinecone"></a>
246+
### Nested Schema for `pinecone`
247+
248+
Read-Only:
249+
250+
- `api_key` (String)
251+
- `batch_size` (Number)
252+
- `index_name` (String)
253+
- `namespace` (String)
254+
255+
256+
<a id="nestedatt--postgres"></a>
257+
### Nested Schema for `postgres`
258+
259+
Read-Only:
260+
261+
- `batch_size` (Number)
262+
- `database` (String)
263+
- `fields` (List of String)
264+
- `host` (String)
265+
- `id_column` (String)
266+
- `password` (String)
267+
- `port` (Number)
268+
- `table_name` (String)
269+
- `username` (String)
270+
271+
272+
<a id="nestedatt--qdrant_cloud"></a>
273+
### Nested Schema for `qdrant_cloud`
274+
275+
Read-Only:
276+
277+
- `api_key` (String)
278+
- `batch_size` (Number)
279+
- `collection_name` (String)
280+
- `url` (String)
281+
282+
283+
<a id="nestedatt--redis"></a>
284+
### Nested Schema for `redis`
285+
286+
Read-Only:
287+
288+
- `batch_size` (Number)
289+
- `database` (Number)
290+
- `host` (String)
291+
- `password` (String)
292+
- `port` (Number)
293+
- `ssl` (Boolean)
294+
- `uri` (String)
295+
- `username` (String)
296+
297+
298+
<a id="nestedatt--s3"></a>
299+
### Nested Schema for `s3`
300+
301+
Read-Only:
302+
303+
- `anonymous` (Boolean)
304+
- `endpoint_url` (String)
305+
- `key` (String)
306+
- `remote_url` (String)
307+
- `secret` (String)
308+
- `token` (String)
309+
310+
311+
<a id="nestedatt--snowflake"></a>
312+
### Nested Schema for `snowflake`
313+
314+
Read-Only:
315+
316+
- `account` (String)
317+
- `batch_size` (Number)
318+
- `database` (String)
319+
- `host` (String)
320+
- `password` (String)
321+
- `port` (Number)
322+
- `record_id_key` (String)
323+
- `role` (String)
324+
- `schema` (String)
325+
- `table_name` (String)
326+
- `user` (String)
327+
328+
329+
<a id="nestedatt--weaviate_cloud"></a>
330+
### Nested Schema for `weaviate_cloud`
331+
332+
Read-Only:
333+
334+
- `api_key` (String)
335+
- `cluster_url` (String)
336+
- `collection` (String)

0 commit comments

Comments
 (0)