From 3aae27d33aaeb567833d22e97d498f45e58fb44b Mon Sep 17 00:00:00 2001 From: "guimin.hgm" Date: Fri, 27 Dec 2024 22:15:00 +0800 Subject: [PATCH] docs: Describes new provider arguement account_type --- alicloud/provider.go | 2 +- website/docs/index.html.markdown | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/alicloud/provider.go b/alicloud/provider.go index 8cd63f60760b..321b7f32e286 100644 --- a/alicloud/provider.go +++ b/alicloud/provider.go @@ -85,7 +85,7 @@ func Provider() terraform.ResourceProvider { Type: schema.TypeString, Optional: true, ValidateFunc: StringInSlice([]string{"Domestic", "International"}, true), - DefaultFunc: schema.MultiEnvDefaultFunc([]string{"ALICLOUD_ACCOUNT_TYPE", "ALIBABA_CLOUD_ACCOUNT_TYPE"}, nil), + DefaultFunc: schema.MultiEnvDefaultFunc([]string{"ALIBABA_CLOUD_ACCOUNT_TYPE"}, nil), }, "assume_role": assumeRoleSchema(), "sign_version": signVersionSchema(), diff --git a/website/docs/index.html.markdown b/website/docs/index.html.markdown index 2f6bd3fce2d9..5b5ff00dd06d 100644 --- a/website/docs/index.html.markdown +++ b/website/docs/index.html.markdown @@ -3,7 +3,7 @@ layout: "alicloud" page_title: "Provider: alicloud" sidebar_current: "docs-alicloud-index" description: |- - The Alicloud provider is used to interact with many resources supported by Alicloud. The provider needs to be configured with the proper credentials before it can be used. + The Alicloud provider is used to interact with many resources supported by Alibaba Cloud. The provider needs to be configured with the proper credentials before it can be used. --- # Alibaba Cloud Provider @@ -285,6 +285,11 @@ In addition to [generic `provider` arguments](https://www.terraform.io/docs/conf Can also be set with the `ALIBABA_CLOUD_ACCOUNT_ID` environment variable since v1.228.0. Environment variable `ALICLOUD_ACCOUNT_ID` has been deprecated since v1.228.0. +* `account_type` - (Optional, Available since 1.240.0) Alibaba Cloud [Account Type](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/guides/getting-account). + It used to indicate caller identity's account type. Can also be set with the `ALIBABA_CLOUD_ACCOUNT_TYPE` environment variable. Valid values: + - `Domestic`(Default): China-Site Account. + - `International`: International-Site Account. + * `shared_credentials_file` - (Optional, Available since 1.49.0) This is the path to the shared credentials file. Can also be set with the `ALIBABA_CLOUD_CREDENTIALS_FILE` environment variable since v1.228.0. Environment variable `ALICLOUD_SHARED_CREDENTIALS_FILE` has been deprecated since v1.228.0.