#Testing Custom Terraform Provider

5 messages · Page 1 of 1 (latest)

carmine epoch
#

Hey all! As the title says, I'm working on a fork of an OSS Terraform provider and would like to make sure my changes actually work as expected. I've tried to do this via the CI/CD pipeline, but there's too much deep coupling with the OG repository and it's nigh impossible to test it in an ephemeral environment. Is there any other way to go about testing my provider locally and test against an expected output/configuration?

proper knoll
#

are your issues when compiling or using it?

carmine epoch
#

just using it.

proper knoll
#

ah well there's a handy page in that case then!
https://developer.hashicorp.com/terraform/cli/config/config-file#development-overrides-for-provider-developers
you need to tell TF where the provider file is and override it to use your local one instead

CLI Configuration | Terraform | HashiCorp Developer

Learn to use the CLI configuration file to customize your CLI settings, including credentials, plugin caching, provider installation methods, etc.

carmine epoch
#

okay awesome, will take a look