Git Product home page Git Product logo

terraform-provider-lyvecloud's Introduction

Terraform Provider for Lyve Cloud

lyvecloud-provider-terraform

A Terraform provider to manage Lyve Cloud Storage.
This project is based on the official AWS provider.

Requirements

Usage

Configure

To quickly get started using the provider, configure the provider as shown below.

You can set the credentials of the S3 API to manage buckets and objects, the credentials of the Account API to manage permissions and service accounts, or both.

provider "lyvecloud" {
  //s3 api - optional
  region = ""
  access_key = ""
  secret_key = ""
  endpoint_url = ""

  //account api - optional
  client_id = ""
  client_secret = ""
}

Create bucket example

resource "lyvecloud_s3_bucket" "bucket" {
  bucket = "my-tf-bucket"
}

Create permission example

resource "lyvecloud_permission" "permission" {
  name = "my-tf-permission"
  description = "my-example-permission-description"
  actions = "all-operations" // “all-operations”, “read”, or “write”.
  buckets = ["my-tf-bucket"]
}

For full provider documentation with details on all options available, see docs folder.

Development

For development purposes, the provider needs to be built locally.

Clone this repository, and install Task:

go install github.com/go-task/task/v3/cmd/task@latest

Note: for more installation options of Task, please view Task installation guide.

Run the following command to build and install the plugin in the correct folder (resolved automatically based on the OS):

task install

To to use the built-in plugin, use the following configurations:

terraform {
  required_providers {
    lyvecloud = {
      source  = "registry.terraform.io/seagate/lyvecloud"
    }
  }
}

provider "lyvecloud" {
  //s3 api - optional
  region = ""
  access_key = ""
  secret_key = ""
  endpoint_url = ""

  //account api - optional
  client_id = ""
  client_secret = ""
}

terraform-provider-lyvecloud's People

Contributors

sasha-seagate avatar dependabot[bot] 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.