GithubHelp home page GithubHelp logo

karencfv / terraform-provider-oxide Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oxidecomputer/terraform-provider-oxide

0.0 0.0 0.0 591 KB

Oxide Terraform provider

License: Mozilla Public License 2.0

Go 97.82% Makefile 2.18%

terraform-provider-oxide's Introduction

Terraform Provider Oxide

Requirements

  • Terraform 1.x and above, we recommend using the latest stable release whenever possible. When installing on an Illumos machine use the Solaris binary.

Using the provider

As a preferred method of authentication, export the OXIDE_HOST and OXIDE_TOKEN environment variables with their corresponding values.

Alternatively, it is possible to authenticate via the optional host and token arguments. In most cases this method of authentication is not recommended. It is generally preferable to keep credential information out of the configuration.

To generate a token, follow these steps:

  • Make sure you have installed the Oxide CLI
  • Log in via the Oxide console.
  • Run oxide auth login --host <host>
  • Run oxide auth status --host <host> --show-token to retrieve the token (host and credential information is saved in $HOME/.config/oxide/hosts.toml).

Example

terraform {
  required_version = ">= 1.0"

  required_providers {
    oxide = {
      source  = "oxidecomputer/oxide"
      version = "0.2.0"
    }
  }
}

provider "oxide" {
  # The provider will default to use $OXIDE_HOST and $OXIDE_TOKEN.
  # If necessary they can be set explicitly (not recommended).
  # host = "<host address>"
  # token = "<token value>"
}

# Create a blank disk
resource "oxide_disk" "example" {
  project_id  = "c1dee930-a8e4-11ed-afa1-0242ac120002"
  description = "a test disk"
  name        = "mydisk"
  size        = 1073741824
  block_size  = 512
}

There are several examples in the examples/ directory.

Development guides and contributing information

Read CONTRIBUTING.md to learn more.

terraform-provider-oxide's People

Contributors

karencfv avatar dependabot[bot] avatar leftwo avatar sudomateo avatar arctiqmk2 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.