thewilli / terraform-provider-persistent

Persistent resource counters for Terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Persistent Counter provider for Terraform

terraform {
  required_providers {
    persistent = {
      source = "rosmo/persistent"
    }
  }
}

resource "persistent_counter" "example" {
  keys     = ["a", "b", "c"]
}

# Result would be:
#   persistent_counter.example.values = { a = 0, b = 1, c = 2 }

# Changing the keys:
resource "persistent_counter" "example" {
  keys     = ["a", "b", "d", "c"]
}

# New result would be:
#   persistent_counter.example.values = { a = 0, b = 1, d = 3, c = 2 }

The provider is available from Terraform registry: registry.terraform.io/providers/rosmo/persistent/latest

Requirements

Building The Provider

  1. Clone the repository
  2. Enter the repository directory
  3. Build the provider using the Go install command:
go install

About

Persistent resource counters for Terraform

License:Mozilla Public License 2.0


Languages

Language:Go 99.3%Language:Makefile 0.7%