Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.59 KB

README.md

File metadata and controls

63 lines (44 loc) · 1.59 KB

Crunchloop Terraform Provider

License

The Crunchloop Terraform Provider enables you to manage your Crunchloop resources using Terraform.

Requirements

Installation

To install the provider, copy and paste the code below into your Terraform configuration. Then, run terraform init to initialize the provider.

terraform {
  required_providers {
    crunchloop = {
      source  = "crunchloop/crunchloop"
      version = "0.1.0"
    }
  }
}

provider "crunchloop" {
  url = "http://localhost:3000"
}

Usage

Here is an example of how to use the provider to manage a Crunchloop resource:

data "crunchloop_vmi" "ubuntu" {
  name = "ubuntu-jammy-server-amd64-20241002"
}

resource "crunchloop_vm" "vm" {
  name                       = "terraform-test"
  vmi_id                     = data.crunchloop_vmi.ubuntu.id
  cores                      = 1
  memory_megabytes           = 1024
  root_volume_size_gigabytes = 10
}

Developing the Provider

If you wish to contribute to the provider, follow these steps:

  1. Clone the repository
  2. Build the provider using Go: go build -o terraform-provider-crunchloop
  3. Use the examples folder to test managing resources with your instance

Documentation

License

This project is licensed under the Mozilla Public License 2.0.