Skip to content

Commit

Permalink
docs: Describes new provider arguement account_type
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhu36 committed Dec 27, 2024
1 parent 278b20b commit 3aae27d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alicloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
7 changes: 6 additions & 1 deletion website/docs/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 3aae27d

Please sign in to comment.