- Terraform Website: https://www.terraform.io
- Mailing list: Google Groups
- Terraform 0.12+
If you want to run Terraform with the dynatrace provider plugin on your system, complete the following steps:
-
Unzip the release archive to extract the plugin binary (
terraform-provider-dynatrace_vX.Y.Z
).
For Terraform version 0.12.x
-
Move the binary into the Terraform plugins directory for the platform.
- Linux/Unix/macOS:
~/.terraform.d/plugins
- Windows:
%APPDATA%\terraform.d\plugins
- Linux/Unix/macOS:
-
Add the plug-in provider to the Terraform configuration file.
terraform { required_providers { dynatrace = { version = "1.0.2" } } }
For Terraform version 0.13.x
-
Move the binary into the Terraform plugins directory for the platform.
- Linux:
~/.terraform.d/plugins/dynatrace.com/com/dynatrace/1.0.2/linux_amd64/
- macOS:
~/.terraform.d/plugins/dynatrace.com/com/dynatrace/1.0.2/darwin_amd64/
- Windows:
%APPDATA%\terraform.d\plugins\dynatrace.com\com\dynatrace\1.0.2\windows_amd64\
- Linux:
-
Add the plug-in provider to the Terraform configuration file.
terraform { required_version = "~> 0.13.0" required_providers { dynatrace = { version = "1.0.2" source = "dynatrace.com/com/dynatrace" } } }
See the dynatrace provider documentation to learn more about how to use it and configure it.
Clone repository to: $GOPATH/src/github.com/luisr-escobar/terraform-provider-dynatrace
mkdir -p $GOPATH/src/github.com/luisr-escobar; cd $GOPATH/src/github.com/luisr-escobar
git clone https://github.com/luisr-escobar/terraform-provider-dynatrace.git
Enter the provider directory and build the provider
cd $GOPATH/src/github.com/luisr-escobar/terraform-provider-dynatrace
make build
To contribute to the provider, Go is required to be installed on your machine (version 1.13+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin
to your $PATH
.
To compile the provider, run make build
. This will build the provider and put the provider binary in the $GOPATH/bin
directory.
make build
$GOPATH/bin/terraform-provider-dynatrace
In order to test the provider, you can simply run make test
.
make test
In order to run the full suite of Acceptance tests, run make testacc.
Note: Acceptance tests create real resources, and often cost money to run.
make testacc