WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Go](https://golang.org/doc/install) 1.24 (to build the provider plugin)
11
11
12
12
## Limitations
13
13
14
+
### Untested features
15
+
14
16
Due to limited testing capacities, the following features are not tested/stable yet:
15
17
16
18
* External Schemas
17
-
* Hive Database
18
-
* RDS Postgres Database
19
-
* RDS MySQL Database
20
-
* Redshift Database
19
+
* Hive Database
20
+
* RDS Postgres Database
21
+
* RDS MySQL Database
22
+
* Redshift Database
21
23
* Temporary Credentials Cluster Identifier
22
24
* Temporary Credentials Assume Role
23
25
* Datashares
24
26
27
+
### Using the AWS Redshift Data API
28
+
29
+
This provider *does* support connecting to the Redshift instance using the AWS Redshift Data API. However, this is not
30
+
the default behavior, requires some additional configuration and comes along with some caveats:
31
+
32
+
* Transactions are not run as real DB-level transactions, but rather as a sequence of individual statements.
33
+
* Due to the unsupported state of transactions, interfering DB interactions might lead to unexpected results.
34
+
* In order to
35
+
prevent [errors due to conflicts with concurrent transactions](https://stackoverflow.com/questions/37344942/redshift-could-not-complete-because-of-conflict-with-concurrent-transaction),
36
+
all statements depend on one lock across resources. This may lead to longer execution times, especially when multiple
37
+
resources are created or updated at the same time.
38
+
25
39
## Building The Provider
26
40
27
41
```sh
@@ -34,14 +48,15 @@ Enter the provider directory and build the provider
34
48
$ cd terraform-provider-redshift
35
49
$ make build
36
50
```
51
+
37
52
## Development
38
53
39
54
If you're new to provider development, a good place to start is the [Extending
Copy file name to clipboardExpand all lines: docs/index.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ provider "redshift" {
54
54
55
55
### Optional
56
56
57
+
-`data_api` (Block List, Max: 1) Configuration for using the Redshift Data API. This can only be used for serverless Redshift clusters. (see [below for nested schema](#nestedblock--data_api))
57
58
-`database` (String) The name of the database to connect to. The default is `redshift`.
58
59
-`host` (String) Name of Redshift server address to connect to.
59
60
-`max_connections` (Number) Maximum number of connections to establish to the database. Zero means unlimited.
@@ -63,6 +64,15 @@ provider "redshift" {
63
64
-`temporary_credentials` (Block List, Max: 1) Configuration for obtaining a temporary password using redshift:GetClusterCredentials (see [below for nested schema](#nestedblock--temporary_credentials))
64
65
-`username` (String) Redshift user name to connect as.
65
66
67
+
<aid="nestedblock--data_api"></a>
68
+
### Nested Schema for `data_api`
69
+
70
+
Required:
71
+
72
+
-`region` (String) The AWS region where the Redshift Serverless workgroup is located. If not specified, the region will be determined from the AWS SDK configuration.
73
+
-`workgroup_name` (String) The name of the Redshift Serverless workgroup to connect to.
0 commit comments