https://github.com/snakeice/terraform-provider-hash-sum
xxhash provider to terraform
https://github.com/snakeice/terraform-provider-hash-sum
terraform terraform-provider xxhash
Last synced: 8 months ago
JSON representation
xxhash provider to terraform
- Host: GitHub
- URL: https://github.com/snakeice/terraform-provider-hash-sum
- Owner: snakeice
- License: mit
- Created: 2022-05-03T21:31:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-19T19:31:37.000Z (over 3 years ago)
- Last Synced: 2025-02-14T21:58:04.397Z (8 months ago)
- Topics: terraform, terraform-provider, xxhash
- Language: Makefile
- Homepage: https://registry.terraform.io/providers/snakeice/hash-sum
- Size: 35.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-provider-hash-sum
Data provider to hashsum strings like:
main.tf:
```tf
terraform {
required_providers {
hashsum = {
version = "0.2"
source = "github.com/snakeice/hash-sum"
}
}
}provider "hashsum" {
}
data "hashsum" "foo1" {
data = "fooa-1"
}
data "hashsum" "foo2" {
data = "fooz-2"
}
data "hashsum" "foo3" {
data = "foox-3"
}data "hashsum" "foo4" {
data = "fooy-4"
}output "foo1" {
value = {
foo1 = data.hashsum.foo1.sum
foo1Mod = data.hashsum.foo1.sum % 4
foo2 = data.hashsum.foo2.sum
foo2Mod = data.hashsum.foo2.sum % 4
foo3 = data.hashsum.foo3.sum
foo3Mod = data.hashsum.foo3.sum % 4
foo4 = data.hashsum.foo4.sum
foo4Mod = data.hashsum.foo4.sum % 4
}
}
```
output:```tfs
Changes to Outputs:
+ foo1 = {
+ foo1 = 1686100410
+ foo1Mod = 2
+ foo2 = 1482346890
+ foo2Mod = 2
+ foo3 = 2008161051
+ foo3Mod = 3
+ foo4 = 1686100410
+ foo4Mod = 2
}
```