# Dynatrace Terraform provider?

**URL:** <https://community.dynatrace.com/t/dynatrace-terraform-provider/10377>\
**Category:** Cloud platforms\
**Tags:** aws, technologies\
**Created:** [January 15, 2018, 3:59pm UTC](https://community.dynatrace.com/t/dynatrace-terraform-provider/10377 "2018-01-15T15:59:52Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthew\_eisengr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthew_eisengr/32/4524_2.png) [@matthew\_eisengr](https://community.dynatrace.com/u/matthew_eisengr)\
**Post date:** [January 15, 2018, 3:59pm UTC](https://community.dynatrace.com/t/dynatrace-terraform-provider/10377/1 "2018-01-15T15:59:52Z")

</div>

Does Dynatrace have any kind of Terraform provider?

I have a client that uses Terraform and would like to auto-add maintenance windows for machines and be able to generate an AWS API token and associate it with the IAM Dynatrace role.

---

<div class="post-metadata">

**Author:** ![arunraj\_r](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@arunraj\_r](https://community.dynatrace.com/u/arunraj_r)\
**Post date:** [June 20, 2018, 9:12am UTC](https://community.dynatrace.com/t/dynatrace-terraform-provider/10377/2 "2018-06-20T09:12:35Z")

</div>

Matthew, Do you find any solution for this question ?

---

<div class="post-metadata">

**Author:** ![matthew\_eisengr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthew_eisengr/32/4524_2.png) [@matthew\_eisengr](https://community.dynatrace.com/u/matthew_eisengr)\
**Post date:** [June 20, 2018, 10:31am UTC](https://community.dynatrace.com/t/dynatrace-terraform-provider/10377/3 "2018-06-20T10:31:54Z")

</div>

I did not, although I’m sure there is one… just haven’t had a reply yet.

---

<div class="post-metadata">

**Author:** ![arunraj\_r](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@arunraj\_r](https://community.dynatrace.com/u/arunraj_r)\
**Post date:** [June 20, 2018, 11:14am UTC](https://community.dynatrace.com/t/dynatrace-terraform-provider/10377/4 "2018-06-20T11:14:11Z")

</div>

Thanks for the quick reply.

---

<div class="post-metadata">

**Author:** ![pawel\_brzoska](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pawel_brzoska/32/18892_2.png) [@pawel\_brzoska](https://community.dynatrace.com/u/pawel_brzoska)\
**Post date:** [June 26, 2018, 9:45am UTC](https://community.dynatrace.com/t/dynatrace-terraform-provider/10377/5 "2018-06-26T09:45:07Z")

</div>

[@Matthew E.](https://answers.dynatrace.com/users/3272/view.html)

can you elaborate a bit on the use case ? Is it about Terraform providing Dynatrace info about maintenance windows so we suppress allerting based on this for specified machines ? Also please clarify what do you want to solve with your second request.

---

<div class="post-metadata">

**Author:** ![matthew\_eisengr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthew_eisengr/32/4524_2.png) [@matthew\_eisengr](https://community.dynatrace.com/u/matthew_eisengr)\
**Post date:** [July 13, 2018, 12:48pm UTC](https://community.dynatrace.com/t/dynatrace-terraform-provider/10377/6 "2018-07-13T12:48:52Z")

</div>

Pawel,

I will try and explain although I don’t understand Terraform terribly well.

I think what the client was trying to do was to use Terraform to push out changes and as part of that tell Dynatrace to enter that entity into a ‘maintenance mode’ so that Dynatrace AI wouldn’t generate an alert for an unavailable host or service. I think they also wanted that logged on the Dynatrace side (assuming using the Events API).

So I guess the question really is, what kinds of integration could we do with Terraform? It was more an art of the possible question than a specific use case although they are looking to do two specific things.

1) Have Terraform create a maintenance window inside Dynatrace for entities that are being affected by change

2) Have Terraform push an event via the events API so that context is given inside Dynatrace.

I think our APIs have this capability already but they are looking for a Terraform example of it.

---

<div class="post-metadata">

**Author:** ![matthew\_eisengr](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthew_eisengr/32/4524_2.png) [@matthew\_eisengr](https://community.dynatrace.com/u/matthew_eisengr)\
**Post date:** [September 28, 2018, 12:06pm UTC](https://community.dynatrace.com/t/dynatrace-terraform-provider/10377/7 "2018-09-28T12:06:10Z")

</div>

Karolina that link is for this question. Here is the link for the product idea: [https://community.dynatrace.com/spaces/483/dynatrace-product-ideas/idea/209995/provide-integration-with-hashicorp-terraform.html](https://community.dynatrace.com/spaces/483/dynatrace-product-ideas/idea/209995/provide-integration-with-hashicorp-terraform.html)

---

<div class="post-metadata">

**Author:** ![Karolina\_Linda](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/karolina_linda/32/36089_2.png) [@Karolina\_Linda](https://community.dynatrace.com/u/Karolina_Linda)\
**Post date:** [September 28, 2018, 12:43pm UTC](https://community.dynatrace.com/t/dynatrace-terraform-provider/10377/8 "2018-09-28T12:43:09Z")

</div>

You’re right 🙂

---

<div class="post-metadata">

**Author:** ![matthew\_eiseng1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthew_eiseng1/32/10897_2.png) [@matthew\_eiseng1](https://community.dynatrace.com/u/matthew_eiseng1)\
**Post date:** [September 4, 2019, 2:22pm UTC](https://community.dynatrace.com/t/dynatrace-terraform-provider/10377/9 "2019-09-04T14:22:13Z")

</div>

After some Googling, I found other Dynatrace users have made attempts with Terraform for various use cases…

> **[GitHub - raffaele-talarico/dynatrace-terraform-aws: Spin up your Dynatrace Managed node in 5 minutes...](https://github.com/raffaele-talarico/dynatrace-terraform-aws)**
>
> Spin up your Dynatrace Managed node in 5 minutes using Terraform and AWS

> **[GitHub - dyladan/terraform-provider-dynatrace](https://github.com/dyladan/terraform-provider-dynatrace)**
>
> Contribute to dyladan/terraform-provider-dynatrace development by creating an account on GitHub.

But what would be really good would be to offer an officially supported provider like some of your competitors (i.e. Data Dog, New Relic).

We just ran into a use case where we wanted to use Terraform to create an AWS account, then add that AWS account into Dynatrace for CloudWatch integration. All the APIs for this exist, so it could be done by community, but it would be fantastic if Dynatrace worked with HashiCorp to have an officially supported provider and appeared on this list [Providers - Configuration Language | Terraform | HashiCorp Developer](https://www.terraform.io/docs/providers/index.html).

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [January 22, 2021, 1:10pm UTC](https://community.dynatrace.com/t/dynatrace-terraform-provider/10377/10 "2021-01-22T13:10:50Z")

</div>

It’s officially there: [Terraform Registry](https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest)

---

<div class="post-metadata">

**Author:** ![kunalv12](https://avatars.discourse-cdn.com/v4/letter/k/7bcc69/32.png) [@kunalv12](https://community.dynatrace.com/u/kunalv12)\
**Post date:** [August 17, 2022, 3:16am UTC](https://community.dynatrace.com/t/dynatrace-terraform-provider/10377/11 "2022-08-17T03:16:53Z")

</div>

Any clue on how often this is looked at -&nbsp;&nbsp;[Dynatrace Open Source · GitHub](https://github.com/dynatrace-oss?q=&type=all&language=&sort=)&nbsp;? Have reported some issue around maintenance windows

[https://github.com/dynatrace-oss/terraform-provider-dynatrace/issues/145](https://github.com/dynatrace-oss/terraform-provider-dynatrace/issues/145)

keen if we can get support around this.

Cheers,

Kunal

---

<div class="post-metadata">

**Author:** ![Joseph\_Hobbs](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joseph_hobbs/32/34284_2.png) [@Joseph\_Hobbs](https://community.dynatrace.com/u/Joseph_Hobbs)\
**Post date:** [September 21, 2022, 3:39pm UTC](https://community.dynatrace.com/t/dynatrace-terraform-provider/10377/12 "2022-09-21T15:39:44Z")

</div>

The terraform provider (at [GitHub - dynatrace-oss/terraform-provider-dynatrace: Dynatrace Terraform provider · GitHub](https://github.com/dynatrace-oss/terraform-provider-dynatrace)) is being actively developed/enhanced.&nbsp; I believe a fix for the issue you mention is targeted for release this week.
