diff --git a/tencentcloud/basic_test.go b/tencentcloud/basic_test.go index 0e8471f394..0637218806 100644 --- a/tencentcloud/basic_test.go +++ b/tencentcloud/basic_test.go @@ -13,12 +13,12 @@ var appid string = os.Getenv("TENCENTCLOUD_APPID") const ( defaultRegion = "ap-guangzhou" - defaultVpcId = "vpc-h70b6b49" + defaultVpcId = "vpc-86v957zb" defaultVpcCidr = "172.16.0.0/16" defaultVpcCidrLess = "172.16.0.0/18" defaultAZone = "ap-guangzhou-3" - defaultSubnetId = "subnet-1uwh63so" + defaultSubnetId = "subnet-rdng6k36" defaultSubnetCidr = "172.16.0.0/20" defaultSubnetCidrLess = "172.16.0.0/22" diff --git a/tencentcloud/resource_tc_cam_role.go b/tencentcloud/resource_tc_cam_role.go index bfb8816d35..ce4d64b091 100644 --- a/tencentcloud/resource_tc_cam_role.go +++ b/tencentcloud/resource_tc_cam_role.go @@ -122,7 +122,7 @@ func resourceTencentCloudCamRole() *schema.Resource { Type: schema.TypeBool, Optional: true, ForceNew: true, - Description: "Indicade whether the CAM role can login or not.", + Description: "Indicates whether the CAM role can login or not.", }, "create_time": { Type: schema.TypeString, diff --git a/tencentcloud/resource_tc_ckafka_instance.go b/tencentcloud/resource_tc_ckafka_instance.go index 062fa2cec0..b472a2b524 100644 --- a/tencentcloud/resource_tc_ckafka_instance.go +++ b/tencentcloud/resource_tc_ckafka_instance.go @@ -44,11 +44,12 @@ package tencentcloud import ( "context" "fmt" + "log" + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ckafka "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ckafka/v20190819" "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" - "log" ) func resourceTencentCloudCkafkaInstance() *schema.Resource { @@ -180,8 +181,8 @@ func resourceTencentCloudCkafkaInstance() *schema.Resource { "3 will be used by default.", }, "default_replication_factor": { - Type: schema.TypeInt, - Required: true, + Type: schema.TypeInt, + Required: true, Description: "If auto.create.topic.enable is set to true but this value is not set, " + "2 will be used by default.", }, diff --git a/tencentcloud/resource_tc_clb_customized_config.go b/tencentcloud/resource_tc_clb_customized_config.go index 7fc6fdba71..a5cf5c5349 100644 --- a/tencentcloud/resource_tc_clb_customized_config.go +++ b/tencentcloud/resource_tc_clb_customized_config.go @@ -51,9 +51,9 @@ func resourceTencentCloudClbCustomizedConfig() *schema.Resource { Description: "Name of Customized Config.", }, "config_content": { - Type: schema.TypeString, - Required: true, - Description: "Content of Customized Config.", + Type: schema.TypeString, + Required: true, + Description: "Content of Customized Config.", }, "load_balancer_ids": { Type: schema.TypeSet, diff --git a/tencentcloud/resource_tc_clb_instance.go b/tencentcloud/resource_tc_clb_instance.go index 1fce9fb3a2..14eafb9cbf 100644 --- a/tencentcloud/resource_tc_clb_instance.go +++ b/tencentcloud/resource_tc_clb_instance.go @@ -88,7 +88,6 @@ resource "tencentcloud_clb_instance" "open_clb1" { clb_name = "hello" master_zone_id = "ap-guangzhou-3" } -~ ``` CREATE instance with log diff --git a/tencentcloud/resource_tc_kubernetes_auth_attachment.go b/tencentcloud/resource_tc_kubernetes_auth_attachment.go index 6760f9ff3c..e65a52f08c 100644 --- a/tencentcloud/resource_tc_kubernetes_auth_attachment.go +++ b/tencentcloud/resource_tc_kubernetes_auth_attachment.go @@ -1,7 +1,7 @@ /* Provide a resource to configure kubernetes cluster authentication info. -~> **NOTE:** Only avaliable for cluster version >= 1.20 +~> **NOTE:** Only available for cluster version >= 1.20 Example Usage diff --git a/tencentcloud/resource_tc_nat_gateway_snat.go b/tencentcloud/resource_tc_nat_gateway_snat.go index 90da215307..a436f80f8a 100644 --- a/tencentcloud/resource_tc_nat_gateway_snat.go +++ b/tencentcloud/resource_tc_nat_gateway_snat.go @@ -107,12 +107,12 @@ Import VPN gateway route can be imported using the id, the id format must be '{nat_gateway_id}#{resource_id}', resource_id range `subnet_id`, `instance_id`, e.g. SUBNET SNat -```hcl +``` $ terraform import tencentcloud_nat_gateway_snat.my_snat nat-r4ip1cwt#subnet-2ap74y35 ``` NETWORKINTERFACT SNat -```hcl +``` $ terraform import tencentcloud_nat_gateway_snat.my_snat nat-r4ip1cwt#ins-da412f5a ``` */ diff --git a/tencentcloud/service_tencentcloud_private_dns.go b/tencentcloud/service_tencentcloud_private_dns.go index 40602188a8..8ba213757b 100644 --- a/tencentcloud/service_tencentcloud_private_dns.go +++ b/tencentcloud/service_tencentcloud_private_dns.go @@ -2,9 +2,10 @@ package tencentcloud import ( "context" + "log" + "github.com/hashicorp/terraform-plugin-sdk/helper/resource" "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" - "log" privatedns "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/privatedns/v20201028" "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/connectivity" diff --git a/website/docs/r/cam_role.html.markdown b/website/docs/r/cam_role.html.markdown index c5684bcc73..5ef37f9107 100644 --- a/website/docs/r/cam_role.html.markdown +++ b/website/docs/r/cam_role.html.markdown @@ -67,7 +67,7 @@ The following arguments are supported: * `document` - (Required) Document of the CAM role. The syntax refers to [CAM POLICY](https://intl.cloud.tencent.com/document/product/598/10604). There are some notes when using this para in terraform: 1. The elements in json claimed supporting two types as `string` and `array` only support type `array`; 2. Terraform does not support the `root` syntax, when appears, it must be replaced with the uin it stands for. * `name` - (Required, ForceNew) Name of CAM role. -* `console_login` - (Optional, ForceNew) Indicade whether the CAM role can login or not. +* `console_login` - (Optional, ForceNew) Indicates whether the CAM role can login or not. * `description` - (Optional) Description of the CAM role. ## Attributes Reference diff --git a/website/docs/r/clb_instance.html.markdown b/website/docs/r/clb_instance.html.markdown index 892d085427..5f90be69d8 100644 --- a/website/docs/r/clb_instance.html.markdown +++ b/website/docs/r/clb_instance.html.markdown @@ -98,7 +98,6 @@ resource "tencentcloud_clb_instance" "open_clb1" { clb_name = "hello" master_zone_id = "ap-guangzhou-3" } -~ ``` CREATE instance with log diff --git a/website/docs/r/kubernetes_auth_attachment.html.markdown b/website/docs/r/kubernetes_auth_attachment.html.markdown index 51ffbd6750..771f9dd849 100644 --- a/website/docs/r/kubernetes_auth_attachment.html.markdown +++ b/website/docs/r/kubernetes_auth_attachment.html.markdown @@ -11,7 +11,7 @@ description: |- Provide a resource to configure kubernetes cluster authentication info. -~> **NOTE:** Only avaliable for cluster version >= 1.20 +~> **NOTE:** Only available for cluster version >= 1.20 ## Example Usage diff --git a/website/docs/r/nat_gateway_snat.html.markdown b/website/docs/r/nat_gateway_snat.html.markdown index ff7c147986..c206b71c0c 100644 --- a/website/docs/r/nat_gateway_snat.html.markdown +++ b/website/docs/r/nat_gateway_snat.html.markdown @@ -139,12 +139,12 @@ In addition to all arguments above, the following attributes are exported: VPN gateway route can be imported using the id, the id format must be '{nat_gateway_id}#{resource_id}', resource_id range `subnet_id`, `instance_id`, e.g. SUBNET SNat -```hcl +``` $ terraform import tencentcloud_nat_gateway_snat.my_snat nat-r4ip1cwt#subnet-2ap74y35 ``` NETWORKINTERFACT SNat -```hcl +``` $ terraform import tencentcloud_nat_gateway_snat.my_snat nat-r4ip1cwt#ins-da412f5a ```