- Have golang installed
- Have
wget
installed - Run
make dev-setup
Be sure to run:
make lint
NOTE: Should be installed with make dev-setup
, if you prefer manually, have a look at the installation guide.
In addition, when changing documentation, run make gen-docs
.
You can preview how the documentation will look in the Terraform registry with this tool.
Expose the following environment variables:
PORT_CLIENT_ID
PORT_CLIENT_SECRET
PORT_BASE_URL
- Optional, Port API url
Then run:
make acctest
# or filtered for your specific test:
TEST_FILTER=.*MyCustomResource.* make acctest
make dev-run-integration
Then export the printed TF_REATTACH_PROVIDERS
environment variable, then your terraform
will use your running code.
Install Delve
make dev-debug