-
Notifications
You must be signed in to change notification settings - Fork 50
/
index.md.tmpl
54 lines (38 loc) · 2.02 KB
/
index.md.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
layout: ""
page_title: "Provider: Redshift"
description: |-
The Redshift provider provides configuration management resources for AWS Redshift.
---
# Redshift Provider
The Redshift provider provides configuration management resources for
[AWS Redshift](https://aws.amazon.com/redshift/).
## Example Usage
### Authentication using fixed password
{{ tffile "examples/provider/provider.tf" }}
### Authentication using temporary credentials
{{ tffile "examples/provider/provider_using_temporary_credentials.tf" }}
### Authentication using temporary credentials in cross-account scenario
{{ tffile "examples/provider/provider_using_temporary_credentials_cross_account.tf" }}
{{ .SchemaMarkdown | trimspace }}
## Proxy Support
If your Redshift cluster is only accessible from within a VPC, you can use the `ALL_PROXY` (`all_proxy`)
and `NO_PROXY` (`no_proxy`) environment variables to configure the provider to access Redshift through
a SOCKS5 proxy
```
ALL_PROXY=socks5[h]://[<socks5-username>:<socks5-password>@]<socks5-hostname>[:<socks5-port>]
NO_PROXY=#....
```
### `ALL_PROXY` URL parameters
* scheme: can be either `socks5` or `socks5h`. The `h` is optional and [does not change the behavior](https://cs.opensource.google/go/x/net/+/3a7c4785:proxy/proxy.go;l=92).
* `socks5-username` - optional username for authenticating to the socks proxy
* `socks5-password` - optional password for authenticating to the socks proxy
* `socks5-hostname` - the socks proxy hostname or IP address
* `socks5-port` - optional port number for the socks proxy. Default port is [1080](https://cs.opensource.google/go/x/net/+/3a7c4785:proxy/proxy.go;l=96)
### `NO_PROXY` Format
`NO_PROXY`/`no_proxy` is an optional environment variable which bypasses `ALL_PROXY`/`all_proxy`
for specific hosts. This is a [comma-separated string, where each value is one of](https://cs.opensource.google/go/x/net/+/3a7c4785:proxy/per_host.go;l=92-96):
* IP address (e.g. `127.0.0.1`)
* CIDR range (e.g. `192.168.0.0/24`)
* zone (e.g. `*.example.com`)
* hostname (e.g. `localhost`)