provider/alicloud: Add the function of replacing ecs instance's system disk #15048
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a function that can replace system disk for an existing ecs instance. And while replacing system disk, it can chang system disk size.
Run the PR's testcase result as follows:
TF_ACC=1 go test ./alicloud -v -run=TestAccAlicloudInstance -timeout 120m
=== RUN TestAccAlicloudInstanceTypesDataSource_basic
--- PASS: TestAccAlicloudInstanceTypesDataSource_basic (14.70s)
=== RUN TestAccAlicloudInstance_basic
--- PASS: TestAccAlicloudInstance_basic (104.20s)
=== RUN TestAccAlicloudInstance_vpc
--- PASS: TestAccAlicloudInstance_vpc (112.01s)
=== RUN TestAccAlicloudInstance_userData
--- PASS: TestAccAlicloudInstance_userData (125.50s)
=== RUN TestAccAlicloudInstance_multipleRegions
--- PASS: TestAccAlicloudInstance_multipleRegions (342.78s)
=== RUN TestAccAlicloudInstance_multiSecurityGroup
--- PASS: TestAccAlicloudInstance_multiSecurityGroup (3.44s)
=== RUN TestAccAlicloudInstance_multiSecurityGroupByCount
--- PASS: TestAccAlicloudInstance_multiSecurityGroupByCount (3.72s)
=== RUN TestAccAlicloudInstance_NetworkInstanceSecurityGroups
--- PASS: TestAccAlicloudInstance_NetworkInstanceSecurityGroups (107.63s)
=== RUN TestAccAlicloudInstance_tags
--- PASS: TestAccAlicloudInstance_tags (91.18s)
=== RUN TestAccAlicloudInstance_update
--- PASS: TestAccAlicloudInstance_update (87.35s)
=== RUN TestAccAlicloudInstanceImage_update
--- PASS: TestAccAlicloudInstanceImage_update (212.84s)
=== RUN TestAccAlicloudInstance_privateIP
--- PASS: TestAccAlicloudInstance_privateIP (99.39s)
=== RUN TestAccAlicloudInstance_associatePublicIP
--- PASS: TestAccAlicloudInstance_associatePublicIP (113.35s)
=== RUN TestAccAlicloudInstance_vpcRule
--- PASS: TestAccAlicloudInstance_vpcRule (118.18s)
PASS
ok github.com/alibaba/terraform-provider/alicloud 118.200s