terraform/examples/alicloud-ecs-image
demonwy 11768bcf5b provider alicloud:add new rds resource and some bugs fix (#12913)
* add new rds resource and some bugs fix

* add docs

* fix validator conflix

fix validator conflix
2017-03-24 13:04:56 +02:00
..
README.md update alicloud provider (#11235) 2017-01-19 14:08:56 +00:00
main.tf provider alicloud:add new rds resource and some bugs fix (#12913) 2017-03-24 13:04:56 +02:00
outputs.tf update alicloud provider (#11235) 2017-01-19 14:08:56 +00:00
variables.tf update alicloud provider (#11235) 2017-01-19 14:08:56 +00:00

README.md

ECS Example

The example gains image info and use it to launche ECS instance, disk, and attached the disk on ECS. the count parameter in variables.tf can let you gain specify image and use it to 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