Skip to content

Commit 60b2bb3

Browse files
MrWolongxiaozhu36
authored andcommitted
Removes the provider setting and improves the Readme
1 parent 2496223 commit 60b2bb3

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,12 @@ If you still want to use the `provider` setting to apply this module, you can sp
176176

177177
```hcl
178178
module "k8s" {
179-
source = "terraform-alicloud-modules/kubernetes/alicloud"
180-
version = "1.3.0"
181-
region = "cn-hangzhou"
182-
profile = "Your-Profile-Name"
183-
create_vpc = true
184-
vpc_name = "my-env-vpc"
179+
source = "terraform-alicloud-modules/kubernetes/alicloud"
180+
version = "1.3.0"
181+
region = "cn-hangzhou"
182+
profile = "Your-Profile-Name"
183+
new_nat_gateway = true
184+
vpc_name = "tf-k8s-vpc"
185185
// ...
186186
}
187187
```
@@ -194,10 +194,10 @@ provider "alicloud" {
194194
region = "cn-hangzhou"
195195
profile = "Your-Profile-Name"
196196
}
197-
module "infrastructure" {
198-
source = "terraform-alicloud-modules/multi-zone-infrastructure-with-ots/alicloud"
199-
create_vpc = true
200-
vpc_name = "my-env-vpc"
197+
module "k8s" {
198+
source = "terraform-alicloud-modules/kubernetes/alicloud"
199+
new_nat_gateway = true
200+
vpc_name = "tf-k8s-vpc"
201201
// ...
202202
}
203203
```
@@ -209,13 +209,13 @@ provider "alicloud" {
209209
profile = "Your-Profile-Name"
210210
alias = "hz"
211211
}
212-
module "infrastructure" {
213-
source = "terraform-alicloud-modules/multi-zone-infrastructure-with-ots/alicloud"
212+
module "k8s" {
213+
source = "terraform-alicloud-modules/kubernetes/alicloud"
214214
providers = {
215215
alicloud = alicloud.hz
216216
}
217-
create_vpc = true
218-
vpc_name = "my-env-vpc"
217+
new_nat_gateway = true
218+
vpc_name = "tf-k8s-vpc"
219219
// ...
220220
}
221221
```

variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
# provider
33
######################
44
variable "region" {
5-
description = "The region used to launch this module resources."
5+
description = "(Deprecated from version 1.4.0) The region used to launch this module resources."
66
type = string
77
default = ""
88
}
99
variable "profile" {
10-
description = "The profile name as set in the shared credentials file. If not set, it will be sourced from the ALICLOUD_PROFILE environment variable."
10+
description = "(Deprecated from version 1.4.0) The profile name as set in the shared credentials file. If not set, it will be sourced from the ALICLOUD_PROFILE environment variable."
1111
type = string
1212
default = ""
1313
}
1414
variable "shared_credentials_file" {
15-
description = "This is the path to the shared credentials file. If this is not set and a profile is specified, $HOME/.aliyun/config.json will be used."
15+
description = "(Deprecated from version 1.4.0) This is the path to the shared credentials file. If this is not set and a profile is specified, $HOME/.aliyun/config.json will be used."
1616
type = string
1717
default = ""
1818
}
1919
variable "skip_region_validation" {
20-
description = "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)."
20+
description = "(Deprecated from version 1.4.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)."
2121
type = bool
2222
default = false
2323
}

0 commit comments

Comments
 (0)