terraform-provider-crunchloop

command module
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
client
Package client provides primitives to interact with the openapi HTTP API.
Package client provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL