You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
terraform plan works correctly and give the plan below: (irrelevant details removed)
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
+ module.aliyun.alicloud_instance.server
id: <computed>
auto_renew_period: "1"
availability_zone: <computed>
dry_run: "false"
image_id: "ubuntu_16_0402_32_20G_alibase_20180409.vhd"
instance_charge_type: "PrePaid"
instance_type: "ecs.s3.large"
internet_max_bandwidth_out: "0"
key_name: <computed>
period: "1"
period_unit: "Month"
private_ip: <computed>
public_ip: <computed>
renewal_status: "AutoRenewal"
role_name: <computed>
status: <computed>
subnet_id: <computed>
system_disk_category: "cloud_efficiency"
system_disk_size: "40"
Plan: 3 to add, 0 to change, 0 to destroy.
------------------------------------------------------------------------
This plan was saved to: plans/create-ecs.plan
To perform exactly these actions, run the following command to apply:
terraform apply "plans/create-ecs.plan"
Then terraform apply plans/create-ecs.plan gives error below: (irrelevant details removed)
module.aliyun.alicloud_instance.asset_prod: Creating...
auto_renew_period: "" => "1"
availability_zone: "" => "<computed>"
image_id: "" => "ubuntu_16_0402_32_20G_alibase_20180409.vhd"
include_data_disks: "" => "true"
instance_charge_type: "" => "PrePaid"
instance_type: "" => "ecs.s3.large"
internet_max_bandwidth_out: "" => "0"
key_name: "" => "<computed>"
period: "" => "1"
period_unit: "" => "Month"
private_ip: "" => "<computed>"
public_ip: "" => "<computed>"
renewal_status: "" => "AutoRenewal"
role_name: "" => "<computed>"
status: "" => "<computed>"
subnet_id: "" => "<computed>"
system_disk_category: "" => "cloud_efficiency"
system_disk_size: "" => "40"
Error: Error applying plan:
1 error(s) occurred:
* module.aliyun.alicloud_instance.asset_prod: 1 error(s) occurred:
* alicloud_instance.asset_prod: The instance type ecs.s3.large is solded out or is not supported in the zone cn-shenzhen-a. Expected instance types: ecs.sn1ne.3xlarge, ecs.sn1ne.2xlarge, ecs.n4.xlarge, ecs.i1.6xlarge, ecs.mn4.2xlarge, ecs.se1.2xlarge, ecs.i1.3xlarge, ecs.mn4.large, ecs.i1.4xlarge, ecs.e4.small, ecs.i1.8xlarge, ecs.sn2ne.xlarge, ecs.mn4.xlarge, ecs.gn5i-c2g1.large, ecs.n4.small, ecs.gn5i-c16g1.4xlarge, ecs.mn4.8xlarge, ecs.i1.2xlarge, ecs.se1ne.2xlarge, ecs.n4.4xlarge, ecs.se1ne.8xlarge, ecs.n4.8xlarge, ecs.se1.8xlarge, ecs.mn4.small, ecs.se1ne.large, ecs.d1.4xlarge, ecs.se1ne.4xlarge, ecs.gn5i-c4g1.xlarge, ecs.sn2ne.2xlarge, ecs.se1ne.xlarge, ecs.se1.xlarge, ecs.gn5i-c8g1.2xlarge, ecs.n4.2xlarge, ecs.sn1ne.8xlarge, ecs.se1ne.6xlarge, ecs.sn1ne.6xlarge, ecs.se1.14xlarge, ecs.i1.xlarge, ecs.sn1ne.4xlarge, ecs.se1ne.3xlarge, ecs.xn4.small, ecs.d1.2xlarge, ecs.sn1ne.xlarge, ecs.se1.large, ecs.n4.large, ecs.sn1ne.large, ecs.sn2ne.large, ecs.se1.4xlarge, ecs.mn4.4xlarge
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
According to Chinese documentation here, Aliyun has stopped selling instance with type ecs.s3.large.
I think the data source should not return instance type which is not selling.
I have defined an instance type data source:
and using it to creating new ECS instance: (irrelevant details removed)
terraform plan
works correctly and give the plan below: (irrelevant details removed)Then
terraform apply plans/create-ecs.plan
gives error below: (irrelevant details removed)According to the Docs,
instance type
ecs.s3.large
should not be exported.The text was updated successfully, but these errors were encountered: