Skip to content

Commit 38ee7a6

Browse files
王超xiaozhu36
authored andcommitted
Removes the provider setting and improves the Readme
1 parent c85716f commit 38ee7a6

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

README-CN.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,12 @@ module "redis" {
158158
本Module从版本v1.3.0开始已经移除掉如下的 provider 的显示设置:
159159
```hcl
160160
provider "alicloud" {
161-
profile = var.profile != "" ? var.profile : null
162-
region = var.region != "" ? var.region : null
163-
skip_region_validation = var.skip_region_validation
164-
}
161+
profile = var.profile != "" ? var.profile : null
162+
shared_credentials_file = var.shared_credentials_file != "" ? var.shared_credentials_file : null
163+
region = var.region != "" ? var.region : null
164+
skip_region_validation = var.skip_region_validation
165+
configuration_source = "terraform-alicloud-modules/redis"
166+
}
165167
```
166168

167169
如果你依然想在Module中使用这个 provider 配置,你可以在调用Module的时候,指定一个特定的版本,比如 1.2.0:

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,12 @@ From the version v1.3.0, the module has removed the following `provider` setting
163163

164164
```hcl
165165
provider "alicloud" {
166-
profile = var.profile != "" ? var.profile : null
167-
region = var.region != "" ? var.region : null
168-
skip_region_validation = var.skip_region_validation
169-
}
166+
profile = var.profile != "" ? var.profile : null
167+
shared_credentials_file = var.shared_credentials_file != "" ? var.shared_credentials_file : null
168+
region = var.region != "" ? var.region : null
169+
skip_region_validation = var.skip_region_validation
170+
configuration_source = "terraform-alicloud-modules/redis"
171+
}
170172
```
171173

172174
If you still want to use the `provider` setting to apply this module, you can specify a supported version, like 1.2.0:

0 commit comments

Comments
 (0)