Created
December 21, 2020 09:45
-
-
Save pascal-hofmann/dd3f33650c451739d52b807eca448d49 to your computer and use it in GitHub Desktop.
Test locally built version of official provider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform providers mirror provider_mirror | |
cd provider_mirror/registry.terraform.io/grafana/grafana/ | |
cp <custom binary> terraform-provider-grafana_v1.7.0 | |
zip -r terraform-provider-grafana_1.7.0_darwin_amd64.zip terraform-provider-grafana_v1.7.0 | |
sha256sum terraform-provider-grafana_1.7.0_darwin_amd64.zip | |
# Convert hex to base64 on https://base64.guru/converter/encode/hex | |
# Replace hash in <version>.json | |
cd - | |
rm .terraform.lock.hcl | |
terraform providers lock -fs-mirror=provider_mirror | |
terraform init | |
terraform plan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the official way to do it https://discuss.hashicorp.com/t/development-overrides-for-providers-under-development/18888/2?u=sharebear