15 Jan 2018 03:59 PM - last edited on 10 Jun 2021 12:24 PM by MaciejNeumann
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.
Solved! Go to Solution.
20 Jun 2018 10:12 AM
Matthew, Do you find any solution for this question ?
20 Jun 2018 11:31 AM
I did not, although I'm sure there is one... just haven't had a reply yet.
20 Jun 2018 12:14 PM
Thanks for the quick reply.
26 Jun 2018 10:45 AM
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.
13 Jul 2018 01:48 PM
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.
28 Sep 2018 01:06 PM - last edited on 16 Oct 2023 03:56 PM by random_user
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-w...
28 Sep 2018 01:43 PM
You're right 🙂
04 Sep 2019 03:22 PM
After some Googling, I found other Dynatrace users have made attempts with Terraform for various use cases...
https://github.com/raffaele-talarico/dynatrace-terraform-aws
https://github.com/dyladan/terraform-provider-dynatrace
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 https://www.terraform.io/docs/providers/index.html.
22 Jan 2021 01:10 PM
It's officially there: https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest
17 Aug 2022 04:16 AM
Any clue on how often this is looked at - https://github.com/dynatrace-oss?q=&type=all&language=&sort= ? Have reported some issue around maintenance windows
https://github.com/dynatrace-oss/terraform-provider-dynatrace/issues/145
keen if we can get support around this.
Cheers,
Kunal
21 Sep 2022 04:39 PM
The terraform provider (at https://github.com/dynatrace-oss/terraform-provider-dynatrace) is being actively developed/enhanced. I believe a fix for the issue you mention is targeted for release this week.