New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/rossmerr/terraform-provider-couchdb

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/rossmerr/terraform-provider-couchdb

  • v1.24.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

Terraform Provider CouchDB

A Terraform provider for CouchDB.

  • Support for the CouchDB API v3
  • Lazy initialization of the CouchDB connection
  • Retry logic for provisioning a database

Requirements

  • Terraform 0.12.x
  • Go 1.14 (to build the provider plugin)

Building The Provider

Clone repository to: $GOPATH/src/github.com/rossmerr/terraform-provider-couchdb

$ mkdir -p $GOPATH/src/github.com/rossmerr; cd $GOPATH/src/github.com/rossmerr
$ git clone git@github.com/rossmerr/terraform-provider-couchdb

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/rossmerr/terraform-provider-couchdb
$ go install

Using the provider

If you're building the provider, follow the instructions to install it as a plugin.

$HOME/.terraform.d/plugins

After placing it into your plugins directory, run terraform init to initialize it.

Or run the make install and you can reference the provider locally using

terraform {
  required_providers {
    couchdb = {
      source = "github.com/rossmerr/couchdb"
    }
  }
}

Configuring the provider

provider "couchdb" {
    endpoint = "localhost:5984"
    name = "jenny"
    password = "secret" 
}
 
resource "couchdb_database" "db1" {
    name = "example"
}

resource "couchdb_database_replication" "db2db" {
    name = "example"
    source = couchdb_database.db1.name
    target = "example-clone"
    create_target = true
    continuous = true
}

resource "couchdb_database_design_document" "test" {
    database = couchdb_database.db1.name
    name = "types"
    views = <<EOF
    {
        "people" : {
            "map" : "function(doc) { if (doc.type == 'person') { emit(doc); } }",
            "reduce": ""           
        }
    }
    EOF
}

FAQs

Package last updated on 04 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc