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
Copy file name to clipboardExpand all lines: website/docs/index.html.markdown
+31-2Lines changed: 31 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -272,6 +272,23 @@ or
272
272
$ export TF_APPEND_USER_AGENT="ArgoAgent/argo-12345678 NodeID/1234 (Optional Extra Information)"
273
273
```
274
274
275
+
### Custom Product Sign Version
276
+
277
+
Some Alibaba Cloud products support more than one API signature version. The provider lets you override the signature version per product through the [`sign_version`](#sign_version) block. Currently `oss` and `sls` are supported. Note that the OSS SDK client defaults to signature `v4` since v1.278.0 (it was `v1` in earlier versions); set `oss = "v1"` explicitly if you still need the legacy signature.
278
+
279
+
Usage:
280
+
281
+
```terraform
282
+
provider "alicloud" {
283
+
region = "cn-hangzhou"
284
+
285
+
sign_version {
286
+
oss = "v4"
287
+
sls = "v4"
288
+
}
289
+
}
290
+
```
291
+
275
292
## Argument Reference
276
293
277
294
In addition to [generic `provider` arguments](https://www.terraform.io/docs/configuration/providers.html)
@@ -330,6 +347,8 @@ In addition to [generic `provider` arguments](https://www.terraform.io/docs/conf
330
347
331
348
*`endpoints` - (Optional) An [`endpoints`](#endpoints) block to support custom endpoints.
332
349
350
+
*`sign_version` - (Optional, Available since v1.215.0) A [`sign_version`](#sign_version) block to specify the signature version used for the API requests of certain cloud products (currently `oss` and `sls`). Only one `sign_version` block may be in the configuration.
351
+
333
352
*`skip_region_validation` - (Optional, Available since v1.52.0) Skip static validation of region ID. Used by users of alternative AlibabaCloud-like APIs or users w/ access to regions that are not public (yet).
334
353
335
354
*`configuration_source` - (Optional, Available since v1.56.0) Use a string to mark a configuration file source, like `terraform-alicloud-modules/terraform-alicloud-ecs-instance` or `terraform-provider-alicloud/examples/vpc`.
@@ -363,7 +382,7 @@ The length should not more than 128(Before 1.207.2, it should not more than 64).
363
382
This parameter is provided by an external party and is used to prevent the confused deputy problem.
364
383
The value must be 2 to 1,224 characters in length and can contain letters, digits, and the following special characters:`= , . @ : / - _`.
365
384
366
-
### assume_role_with_oidc Configuration Block
385
+
### `assume_role_with_oidc` Configuration Block
367
386
368
387
The `assume_role_with_oidc` configuration block supports the following arguments:
369
388
@@ -377,7 +396,17 @@ The `assume_role_with_oidc` configuration block supports the following arguments
377
396
Can also be set with the `ALIBABA_CLOUD_ROLE_SESSION_NAME` environment variable.
378
397
*`session_expiration` - (Optional) The validity period of the STS token. Unit: seconds. Default value: 3600. Minimum value: 900. Maximum value: the value of the MaxSessionDuration parameter when creating a ram role.
379
398
*`policy` - (Optional) The policy that specifies the permissions of the returned STS token. You can use this parameter to grant the STS token fewer permissions than the permissions granted to the RAM role.
380
-
399
+
400
+
### `sign_version` Configuration Block
401
+
402
+
The `sign_version` configuration block overrides the signature version used by the SDK client of specific cloud products. See [Custom Product Sign Version](#custom-product-sign-version) for an example. The following arguments are supported:
403
+
404
+
*`oss` - (Optional) The signature version used by the OSS SDK client. Valid values: `v1`, `v4`. Starting from v1.278.0, the default value is changed from `v1` to `v4`; in earlier versions the default was `v1`. Set this field to `v1` explicitly if you need to keep using the legacy signature.
405
+
406
+
->**NOTE:**`v2` is no longer accepted starting from v1.278.0; the value will be treated as the default and the client will fall back to `v4`.
407
+
408
+
*`sls` - (Optional) The signature version used by the SLS (Log Service) SDK client. Valid values: `v1`, `v4`. Defaults to `v1`. Full v4 signature support across all `alicloud_sls_*` / `alicloud_log_*` resources is available since v1.276.0.
409
+
381
410
### `endpoints`
382
411
383
412
**NOTE:** Due to certain API restrictions, the endpoints pointing to the area should be consistent with the `region_id`.
0 commit comments