Skip to content

HugoBroudeur/terraform-provider-contabo

 
 

Repository files navigation

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.

This fork is used for pushing the latest Contabo openAPI schema to the terraform registry

Getting Started

  1. Install terraform cli

  2. Copy the example examples/main.tf.example as .tf file to you project directory

  3. 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

  1. Install terraform cli

  2. git clone https://github.com/contabo/terraform-provider-contabo.git

  3. make build in order to create provider binary

  4. create ~/.terraformrc with following content

    provider_installation {
    
      dev_overrides {
        "contabo/contabo" = "/PATH/TO/YOUR/BINARY/BUILD"
      }
    
      direct {}
    }
  5. Then change to the examples directory and copy main.tf.example to main.tf and fill in the provider config.

  6. 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

About

Terraform Provider for Contabo Cloud-Services

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.1%
  • Makefile 0.9%