briancain / terraform-provider-diceroll

A terraform provider to roll x number of y sided :game_die:
https://registry.terraform.io/providers/briancain/diceroll/latest
Mozilla Public License 2.0
3 stars 0 forks source link
dice dice-roller example provider terraform terraform-provider

terraform-provider-diceroll

release

An example provider that rolls x,y die.

terraform {
  required_providers {
    diceroll = {
      source  = "briancain/diceroll"
      version = ">=0.1.10"
    }
  }
}

resource "diceroll_roll" "yahtzee" {
  quantity = 6
  sides = 6
  seed = "yahtzee!"
}

output "yahtzee_roll" {
  value = diceroll_roll.yahtzee
}

Example Module

Development

A Makefile has been provided for building and installing this terraform provider.o

Run the following command to build the provider:

make build

It will build the provider binary and drop it in your local directory.

If you wish to install the provider, and try out one of the examples, you'll want to install it locally:

make install

Then you will be able to navigate to the example folder and test out a terraform configuration for this provider.