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.
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.
After some Googling, I found other Dynatrace users have made attempts with Terraform for various use cases...
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.