26 Jun 2026
12:20 PM
- last edited on
30 Jun 2026
01:50 PM
by
MaciejNeumann
We'd like to manage via the dynatrace terraform provider:
could this be added? thanks a lot!
29 Jun 2026 11:23 PM
Currently, the Dynatrace Terraform provider doesn't have dedicated resources for Platform tokens or OAuth clients.
But go through the docs describe using them for provider authentication, not necessarily provisioning them via Terraform resources
Terraform API support and access permission handling — Dynatrace Docs
Thanks,
Sujit
29 Jul 2026 09:57 AM
I second the request, in our case we'd like to manage the platform tokens for AWS logs/events ingestion.
The documentation for the existing API token resource doesn't make it very clear that platform tokens are not supported.
https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/resources/api_token
On top of that when you try and specify platform token scopes like data-acquisition:logs:ingest you get a rather unhelpful error:
module.dynatrace_aws_connection.dynatrace_api_token.ingest_token[0]: Creating...
╷
│ Error: Could not map JSON at 'scopes[0]' near line 1 column 112
│
│ with module.dynatrace_aws_connection.dynatrace_api_token.ingest_token[0],
│ on .terraform/modules/dynatrace_aws_connection/cloudformation.tf line 19, in resource "dynatrace_api_token" "ingest_token":
│ 19: resource "dynatrace_api_token" "ingest_token" {
│
╵
Featured Posts