terraform-provider-contabo
terraform-provider-contabo copied to clipboard
Terraform Provider for Contabo Cloud-Services
terraform-provider-contabo
terraform-provider-contabo is a terraform provider for managing your products from Contabo like Cloud VPS, VDS and S3 compatible Object Storage using the Contabo APIs via terraform cli.
Getting Started
-
Install terraform cli
-
Copy the example
examples/main.tf.exampleas.tffile to you project directory -
Run terraform
terraform init terraform plan # CAUTION: with example main.tf you are about to order and pay an object storage terraform apply
Local Development
-
Install terraform cli
-
git clone https://github.com/contabo/terraform-provider-contabo.git -
make buildin order to create provider binary -
create
~/.terraformrcwith following contentprovider_installation { dev_overrides { "contabo/contabo" = "/PATH/TO/YOUR/BINARY/BUILD" } direct {} } -
Then change to the
examplesdirectory and copymain.tf.exampletomain.tfand fill in the provider config. -
In the same directory execute
terraform plan # CAUTION: with example main.tf you are about to order and pay a Cloud VPS instance terraform apply
Acceptance Testing
In order to run acceptance tests run:
make test-acc
CAUTION: running acceptance testing will work with actual resources which will usually cost money