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
$ export VOLCENGINE_FILE_PATH="your_file_path"# if empty, default path is ~/.volcengine
143
143
```
144
144
145
+
## Authenticated Cloud Control proxy
146
+
147
+
Use `proxy_url` together with `proxy_authorization` when Cloud Control API requests must pass through an authenticated HTTP proxy. `proxy_authorization` is the complete value of the `Proxy-Authorization` header and is marked sensitive. For HTTP proxies, keep credentials out of `proxy_url` and use this attribute instead. `proxy_authorization` supports HTTP and HTTPS proxy URLs; SOCKS5 and SOCKS5H URLs remain available without this attribute.
148
+
149
+
For a ZTI proxy, configure the same values used by curl:
To use the proxy only for specified destinations, configure the inverse allowlist with `proxy_include_domains`:
185
+
186
+
```hcl
187
+
provider "volcenginecc" {
188
+
proxy_url = "http://<your-proxy-domain>:8080"
189
+
proxy_authorization = var.proxy_authorization
190
+
proxy_include_domains = [
191
+
"cloudcontrol.cn-beijing.volcengineapi.com",
192
+
]
193
+
}
194
+
```
195
+
196
+
Replace `cn-beijing` with the configured region, or list the host from `endpoints.cloudcontrolapi` when using a custom endpoint. A domain without a leading dot matches the domain and its subdomains; a leading dot matches subdomains only. IP addresses, CIDR ranges, optional ports, and `*` follow standard `NO_PROXY` matching. `no_proxy` and `proxy_include_domains` cannot be configured together.
197
+
198
+
The equivalent environment variables are `VOLCENGINE_NO_PROXY` (with `NO_PROXY` and `no_proxy` as fallbacks) and comma-separated `VOLCENGINE_PROXY_INCLUDE_DOMAINS`. Explicit provider attributes take precedence over the environment variables. These settings apply to Cloud Control API traffic; STS calls made by `assume_role` use a separate client.
199
+
145
200
<!-- schema generated by tfplugindocs -->
146
201
147
202
## Schema
@@ -156,7 +211,10 @@ $ export VOLCENGINE_FILE_PATH="your_file_path" # if empty, default path is ~/.vo
156
211
-`customer_headers` (String) CUSTOMER HEADERS for Volcengine Provider. The customer_headers field uses commas (,) to separate multiple headers, and colons (:) to separate each header key from its corresponding value.
157
212
-`disable_ssl` (Boolean) Disable SSL for Volcengine Provider
158
213
-`endpoints` (Attributes) An `endpoints` block (documented below). Only one `endpoints` block may be in the configuration. (see [below for nested schema](#nestedatt--endpoints))
159
-
-`proxy_url` (String) PROXY URL for Volcengine Provider
214
+
-`no_proxy` (String) Comma-separated hosts, domain suffixes, IP addresses, or CIDR ranges that bypass proxy_url. It follows standard NO_PROXY matching and can be sourced from VOLCENGINE_NO_PROXY, NO_PROXY, or no_proxy.
215
+
-`proxy_authorization` (String, Sensitive) Value of the Proxy-Authorization header for Cloud Control API proxy requests, for example `Basic <token>`. It can also be sourced from the `VOLCENGINE_PROXY_AUTHORIZATION` environment variable.
216
+
-`proxy_include_domains` (Set of String) Hosts, domain suffixes, IP addresses, or CIDR ranges that use proxy_url while all other destinations connect directly. It can be sourced as a comma-separated list from VOLCENGINE_PROXY_INCLUDE_DOMAINS and cannot be combined with no_proxy.
217
+
-`proxy_url` (String) HTTP, HTTPS, SOCKS5, or SOCKS5H proxy URL for Cloud Control API requests. It can also be sourced from the `VOLCENGINE_PROXY_URL` environment variable.
160
218
-`region` (String) The Region for Volcengine Provider. It must be provided, but it can also be sourced from the `VOLCENGINE_REGION` environment variable
$ export VOLCENGINE_FILE_PATH="your_file_path"# if empty, default path is ~/.volcengine
138
138
```
139
139
140
+
## Authenticated Cloud Control proxy
141
+
142
+
Use `proxy_url` together with `proxy_authorization` when Cloud Control API requests must pass through an authenticated HTTP proxy. `proxy_authorization` is the complete value of the `Proxy-Authorization` header and is marked sensitive. For HTTP proxies, keep credentials out of `proxy_url` and use this attribute instead. `proxy_authorization` supports HTTP and HTTPS proxy URLs; SOCKS5 and SOCKS5H URLs remain available without this attribute.
143
+
144
+
For a ZTI proxy, configure the same values used by curl:
To use the proxy only for specified destinations, configure the inverse allowlist with `proxy_include_domains`:
180
+
181
+
```hcl
182
+
provider "volcenginecc" {
183
+
proxy_url = "http://<your-proxy-domain>:8080"
184
+
proxy_authorization = var.proxy_authorization
185
+
proxy_include_domains = [
186
+
"cloudcontrol.cn-beijing.volcengineapi.com",
187
+
]
188
+
}
189
+
```
190
+
191
+
Replace `cn-beijing` with the configured region, or list the host from `endpoints.cloudcontrolapi` when using a custom endpoint. A domain without a leading dot matches the domain and its subdomains; a leading dot matches subdomains only. IP addresses, CIDR ranges, optional ports, and `*` follow standard `NO_PROXY` matching. `no_proxy` and `proxy_include_domains` cannot be configured together.
192
+
193
+
The equivalent environment variables are `VOLCENGINE_NO_PROXY` (with `NO_PROXY` and `no_proxy` as fallbacks) and comma-separated `VOLCENGINE_PROXY_INCLUDE_DOMAINS`. Explicit provider attributes take precedence over the environment variables. These settings apply to Cloud Control API traffic; STS calls made by `assume_role` use a separate client.
194
+
140
195
<!-- schema generated by tfplugindocs -->
141
196
142
197
## Schema
@@ -152,7 +207,10 @@ $ export VOLCENGINE_FILE_PATH="your_file_path" # if empty, default path is ~/.vo
152
207
-`customer_headers` (String) CUSTOMER HEADERS for Volcengine Provider. The customer_headers field uses commas (,) to separate multiple headers, and colons (:) to separate each header key from its corresponding value.
153
208
-`disable_ssl` (Boolean) Disable SSL for Volcengine Provider
154
209
-`endpoints` (Attributes) An `endpoints` block (documented below). Only one `endpoints` block may be in the configuration. (see [below for nested schema](#nestedatt--endpoints))
155
-
-`proxy_url` (String) PROXY URL for Volcengine Provider
210
+
-`no_proxy` (String) Comma-separated hosts, domain suffixes, IP addresses, or CIDR ranges that bypass proxy_url. It follows standard NO_PROXY matching and can be sourced from VOLCENGINE_NO_PROXY, NO_PROXY, or no_proxy.
211
+
-`proxy_authorization` (String, Sensitive) Value of the Proxy-Authorization header for Cloud Control API proxy requests, for example `Basic <token>`. It can also be sourced from the `VOLCENGINE_PROXY_AUTHORIZATION` environment variable.
212
+
-`proxy_include_domains` (Set of String) Hosts, domain suffixes, IP addresses, or CIDR ranges that use proxy_url while all other destinations connect directly. It can be sourced as a comma-separated list from VOLCENGINE_PROXY_INCLUDE_DOMAINS and cannot be combined with no_proxy.
213
+
-`proxy_url` (String) HTTP, HTTPS, SOCKS5, or SOCKS5H proxy URL for Cloud Control API requests. It can also be sourced from the `VOLCENGINE_PROXY_URL` environment variable.
156
214
-`region` (String) The Region for Volcengine Provider. It must be provided, but it can also be sourced from the `VOLCENGINE_REGION` environment variable
157
215
158
216
@@ -185,4 +243,4 @@ The current version has a known issue when modifying the SetNestedAttribute and
185
243
| Parameter Type | Impact | Recommendation | Example |
186
244
|---|---|---|---|
187
245
|`SetNestedAttribute`| If `SetNestedAttribute` is not fully defined, creating new resources may fail. Even when it is fully defined, modifying existing items in the Set may cause the following issues: errors that prevent the update; or no explicit error, but non-target items being incorrectly updated. There is also a certain probability that re-running `terraform apply` will fail. | 1. All attributes under `SetNestedAttribute` must be fully defined.<br>2. If there are multiple items under a `SetNestedAttribute`, try to avoid operating on them through Terraform. | 1. [`volcenginecc_alb_listener`: `domain_extensions`](https://registry.terraform.io/providers/volcengine/volcenginecc/latest/docs/resources/alb_listener)<br>2. [`volcenginecc_alb_rule`: `rule_action`](https://registry.terraform.io/providers/volcengine/volcenginecc/latest/docs/resources/alb_rule)|
188
-
|`ListNestedAttribute`| When it contains read-only attributes, it has no impact on creating new resources or modifying existing ones. However, when changing resource data, inserting or deleting items in the middle of the list can lead to data being misaligned, causing incorrect updates to non-target items. | 1. All attributes under `ListNestedAttribute` must be fully defined.<br>2. If there are multiple items under a `ListNestedAttribute`, try to avoid operating on them through Terraform.<br>3. If changes are necessary, only add or delete items at the end of the `ListNestedAttribute`. | 1. [`volcenginecc_rdspostgresql_db_endpoint`: `addresses`](https://registry.terraform.io/providers/volcengine/volcenginecc/latest/docs/rdspostgresql_db_endpoint)<br>2. [`volcenginecc_ecs_instance`: `secondary_network_interfaces`](https://registry.terraform.io/providers/volcengine/volcenginecc/latest/docs/ecs_instance)|
246
+
|`ListNestedAttribute`| When it contains read-only attributes, it has no impact on creating new resources or modifying existing ones. However, when changing resource data, inserting or deleting items in the middle of the list can lead to data being misaligned, causing incorrect updates to non-target items. | 1. All attributes under `ListNestedAttribute` must be fully defined.<br>2. If there are multiple items under a `ListNestedAttribute`, try to avoid operating on them through Terraform.<br>3. If changes are necessary, only add or delete items at the end of the `ListNestedAttribute`. | 1. [`volcenginecc_rdspostgresql_db_endpoint`: `addresses`](https://registry.terraform.io/providers/volcengine/volcenginecc/latest/docs/rdspostgresql_db_endpoint)<br>2. [`volcenginecc_ecs_instance`: `secondary_network_interfaces`](https://registry.terraform.io/providers/volcengine/volcenginecc/latest/docs/ecs_instance)|
0 commit comments