Skip to content

Commit 7a11e14

Browse files
committed
add note on authentication usage
1 parent 803c579 commit 7a11e14

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docs/index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ The Redshift provider provides configuration management resources for
1212

1313
## Example Usage
1414

15+
Please note that only one authentication method can be used at a time. There is no logic to fall back to another method if the first one fails.
16+
1517
### Authentication using fixed password
1618

1719
```terraform
@@ -22,6 +24,18 @@ provider "redshift" {
2224
}
2325
```
2426

27+
### Authentication using Redshift Data API
28+
29+
```terraform
30+
provider "redshift" {
31+
database = var.redshift_database
32+
data_api {
33+
workgroup_name = var.redshift_workgroup
34+
region = var.aws_region
35+
}
36+
}
37+
```
38+
2539
### Authentication using temporary credentials
2640

2741
```terraform

0 commit comments

Comments
 (0)