Automations
All questions related to Workflow Automation, AutomationEngine, and EdgeConnect, as well as integrations with various tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Terraform provider Platform tokens/OAuth client resource

mari_steiner
Visitor

We'd like to manage via the dynatrace terraform provider:

  • Platform tokens
  • OAuth clients

could this be added? thanks a lot!

2 REPLIES 2

sujit_k_singh
Champion

Hi @mari_steiner 

 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

Dynatrace Professional Certified

pawelpesz
Newcomer

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