This is a simple example on how to fetch pingdom
terraform community provider using env0 Custom Flows on terraform v11 or v12.
Note: For terraform v13 please refer to terraform's official documentation on how to specify community providers.
What we basically do in env0.yml
file is:
- Create the relevant
terraform.d
folder under the user's home folder (env0's runtime uses a dockerizedalpine
image, henceos_arch
islinux_amd64
). - Download the static artifact file of the
pingdom
community provider from github. - Allow execution permissions for the file so
terraform
can use it.
Note: Please pay attention that custom flow needs to be done before
terraform init
and in bothdeploy
anddestroy
actions.