deploy automation example for sakura cloud by terraform
For Easy-Deploy to Sakura Cloud. ---#WIP
Using terraform for Easy-Deploy ---#WIP
- terraform platform
- https://www.terraform.io/downloads.html
- terraform can work in any OS
- sakura cloud API keys
- https://secure.sakura.ad.jp/cloud/iaas/#!/pref/apikey/
- Get your API key from your Control panel.
only cloning this repo to your local folder.
$ git clone https://github.com/onifinger/terraform_sacloudAutoDeploy.git
Sorry, you have a bit of work, though.
- Run commands below.
$ cd /usr/local/bin
$ sudo unzip terraform_binary.zip
$ sudo unzip terraform-provider-sakuracloud_xxx_xxx.zip
- Test your terraform env.
$ terraform --help
- edit prov.tf according to your env.
- Run commands below.
$ terraform plan
$ terraform apply
if you wanna clear env on Sakura Cloud, execute below.
$ terraform destroy