Skip to content

luisr-escobar/terraform-provider-dynatrace

Repository files navigation

Dynatrace Terraform Provider

Requirements

Using the provider

If you want to run Terraform with the dynatrace provider plugin on your system, complete the following steps:

  1. Download the dynatrace provider plugin for Terraform.

  2. Unzip the release archive to extract the plugin binary (terraform-provider-dynatrace_vX.Y.Z).

For Terraform version 0.12.x

  1. Move the binary into the Terraform plugins directory for the platform.

    • Linux/Unix/macOS: ~/.terraform.d/plugins
    • Windows: %APPDATA%\terraform.d\plugins
  2. Add the plug-in provider to the Terraform configuration file.

    terraform {
        required_providers {
            dynatrace = {
                version = "1.0.2"
            }
        }
    }

For Terraform version 0.13.x

  1. 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\
  2. 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.

Building The Provider

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

Contributing to the provider

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.

Development Environment

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages