Skip to content

Commit 3cd7916

Browse files
authored
fix(as): [119957253] tencentcloud_as_scaling_config update params enhanced_automation_tools_service (#2881)
* add * add
1 parent c888c69 commit 3cd7916

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.changelog/2881.txt

Whitespace-only changes.

tencentcloud/services/as/resource_tc_as_scaling_config.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,7 @@ func ResourceTencentCloudAsScalingConfig() *schema.Resource {
196196
"enhanced_automation_tools_service": {
197197
Type: schema.TypeBool,
198198
Optional: true,
199-
Default: true,
200-
Description: "To specify whether to enable cloud automation tools service. Default is `TRUE`.",
199+
Description: "To specify whether to enable cloud automation tools service.",
201200
},
202201
"user_data": {
203202
Type: schema.TypeString,
@@ -544,7 +543,9 @@ func resourceTencentCloudAsScalingConfigRead(d *schema.ResourceData, meta interf
544543
_ = d.Set("security_group_ids", helper.StringsInterfaces(config.SecurityGroupIds))
545544
_ = d.Set("enhanced_security_service", *config.EnhancedService.SecurityService.Enabled)
546545
_ = d.Set("enhanced_monitor_service", *config.EnhancedService.MonitorService.Enabled)
547-
_ = d.Set("enhanced_automation_tools_service", *config.EnhancedService.AutomationToolsService.Enabled)
546+
if config.EnhancedService.AutomationToolsService.Enabled != nil {
547+
_ = d.Set("enhanced_automation_tools_service", *config.EnhancedService.AutomationToolsService.Enabled)
548+
}
548549
_ = d.Set("user_data", helper.PString(config.UserData))
549550
_ = d.Set("instance_tags", flattenInstanceTagsMapping(config.InstanceTags))
550551
_ = d.Set("disk_type_policy", *config.DiskTypePolicy)

website/docs/r/as_scaling_config.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ The following arguments are supported:
108108
* `cam_role_name` - (Optional, String) CAM role name authorized to access.
109109
* `data_disk` - (Optional, List) Configurations of data disk.
110110
* `disk_type_policy` - (Optional, String) Policy of cloud disk type. Valid values: `ORIGINAL` and `AUTOMATIC`. Default is `ORIGINAL`.
111-
* `enhanced_automation_tools_service` - (Optional, Bool) To specify whether to enable cloud automation tools service. Default is `TRUE`.
111+
* `enhanced_automation_tools_service` - (Optional, Bool) To specify whether to enable cloud automation tools service.
112112
* `enhanced_monitor_service` - (Optional, Bool) To specify whether to enable cloud monitor service. Default is `TRUE`.
113113
* `enhanced_security_service` - (Optional, Bool) To specify whether to enable cloud security service. Default is `TRUE`.
114114
* `host_name_settings` - (Optional, List) Related settings of the cloud server hostname (HostName).

0 commit comments

Comments
 (0)