Giter Site home page Giter Site logo

philippe-vandermoere / terraform-provider-algolia Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 4.0 58 KB

Terraform Algolia provider

Home Page: https://registry.terraform.io/providers/philippe-vandermoere/algolia/latest

License: MIT License

Makefile 2.03% Go 97.97%
algolia terraform-provider terraform golang

terraform-provider-algolia's Introduction

Terraform Provider Algolia

licence test Go Report Card codecov

This repository is a Algolia provider for Terraform.

See usage.

Developer

Requirements

Installation

  1. Clone the repository
  2. Enter the repository directory
  3. Build the provider using the make install command:
git clone https://github.com/philippe-vandermoere/terraform-provider-algolia
cd terraform-provider-algolia
make install

terraform-provider-algolia's People

Contributors

philippe-vandermoere avatar etiennetremel avatar

Stargazers

Coleman Gariety avatar  avatar Félix Voituret avatar Ben Osborne avatar Florent Baldino avatar Cristian Pop avatar  avatar

Watchers

 avatar

terraform-provider-algolia's Issues

Feature request: allow upsert replicas only

I'm having a case when indexes are created by Terraform with few replicas, and other indexes manually created by users for A/B testing. The problem is that in a CI/CD environment, the Terraform will override the index settings and remove the manually added replicas from the list.

Would it be possible to add a new boolean attribute to the resource.algolia_index called upsert_replicas which if set to true will make sure that replicas that aren't defined in the replicas attribute will be kept?

For example:

resource "algolia_index" "my-index" {
  name = "my-index"
  replicas = [
    "my-index_price_asc",
    "my-index_price_desc"
  ]
  upsert_replicas = true
}

After applying above configuration, if someone manual add a new replica called my-index_color_asc from the Algolia portal and if the upsert_replicas attribute is set to true, then Terraform would keep the my-index_color_asc in the list of replicas. But if the my-index_price_asc is removed from the list, then it should be removed.

Any though? I'm happy to contribute.

Create / Delete index

Hi,

Good work on this.

Does it provide a resource of "index", so terraform can create/delete indexes?

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.