terraform/examples/alicloud-ecs
Paul Stack 408ce5fe3f Revert "provider/alicloud: change create ecs postpaid instance API" (#12724)
* Revert "datadog: Fix incorrect schema of monitor for 'silenced' (#12720)"

This reverts commit 8730bf125f.

* Revert "schema: Allow *Resource as Elem of TypeMap in validation (#12722)"

This reverts commit 1df1c21d5b.

* Revert "provider/alicloud: change create ecs postpaid instance API (#12226)"

This reverts commit ffc5a06cb5.
2017-03-15 17:18:11 +02:00
..
README.md update alicloud provider (#11235) 2017-01-19 14:08:56 +00:00
main.tf Revert "provider/alicloud: change create ecs postpaid instance API" (#12724) 2017-03-15 17:18:11 +02:00
outputs.tf update alicloud provider (#11235) 2017-01-19 14:08:56 +00:00
variables.tf Revert "provider/alicloud: change create ecs postpaid instance API" (#12724) 2017-03-15 17:18:11 +02:00

README.md

ECS Example

The example launches ECS instance, disk, and attached the disk on ECS. the count parameter in variables.tf can let you create specify number ECS instances.

Get up and running

  • Planning phase

      terraform plan 
      	var.availability_zones
      		Enter a value: {var.availability_zones}  /*cn-beijing-b*/
      	var.datacenter
      		Enter a value: {datacenter}
      	....
    
  • Apply phase

      terraform apply 
          var.availability_zones
      		Enter a value: {var.availability_zones}  /*cn-beijing-b*/
      	var.datacenter
      		Enter a value: {datacenter}
      	....
    
  • Destroy

      terraform destroy