This repo contains the sample code for the blog post series How To Use Terraform with CloudSigma. The examples correspond to the following parts of the series:
Note: The examples deploy resources into your CloudSigma account. It is not our responsibility if you are charged money for this.
- Getting started with Terraform
- single-web-server: Deploy a single CloudSigma server with NGINX server that will return "Welcome to nginx!" page for every request on port 80.
- multiple-providers: Deploy a single CloudSigma server and an AWS instance
- How to perform bulk operations
- bulk-drives-clone: Clone multiple CloudSigma drives using
count
parameter. - bulk-servers-create: Create multiple CloudSigma servers using
count
parameter.
- bulk-drives-clone: Clone multiple CloudSigma drives using
- Install Terraform.
cd
into one of the example folders.- Set your CloudSigma credentials in
terraform.tfvars
file. - Run
terraform init
. - Run
terraform apply
. - After it's done deploying, the example will output an IP you can try out.
- To clean up and delete all resources after you're done, run
terraform destroy
.
Please see LICENSE for details on how the code in this repo is licensed.