Skip to content

Instantly share code, notes, and snippets.

View ArthurHlt's full-sized avatar

Arthur Halet ArthurHlt

  • Orange
  • Nice, France
View GitHub Profile
@ArthurHlt
ArthurHlt / gen-custom.sh
Last active August 2, 2023 06:37
Generate json schema for intellij terraform plugin on a community provider
#!/usr/bin/env bash
# Run `./gen-custom.sh github.com/myorg/myprovider provider-name version`
# e.g.: `./gen-custom.sh github.com/mevansam/terraform-provider-cf cloudfoundry v1.0.0`
# This will place a provider-name.json directly in $HOME/.terraform.d/schemas
CUR="$(pwd)"
out="$CUR/schemas"
mkdir -p "$out"