Skip to content

Commit 178aafa

Browse files
authored
fix(as): [119571014]as launch config support change (#2811)
* launch config support chane * launch config support change
1 parent a379fd2 commit 178aafa

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changelog/2811.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_as_scaling_group: Support update `configuration_id`
3+
```

tencentcloud/services/as/resource_tc_as_scaling_group.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,10 @@ func resourceTencentCloudAsScalingGroupUpdate(d *schema.ResourceData, meta inter
513513
updateAttrs = append(updateAttrs, "scaling_group_name")
514514
request.AutoScalingGroupName = helper.String(d.Get("scaling_group_name").(string))
515515
}
516+
if d.HasChange("configuration_id") {
517+
updateAttrs = append(updateAttrs, "configuration_id")
518+
request.LaunchConfigurationId = helper.String(d.Get("configuration_id").(string))
519+
}
516520
if d.HasChange("max_size") {
517521
updateAttrs = append(updateAttrs, "max_size")
518522
request.MaxSize = helper.IntUint64(d.Get("max_size").(int))

0 commit comments

Comments
 (0)