Hi, I'm working on setting up a connection with the administrative API to query the audit logs.
When setting up the service token to do so I see that the lowest level off permission to give to the token should be security admin.
Terraform resource to create the token:
resource "dbtcloud_service_token" "datadog-security-admin-token" {
name = "Datadog Security Admin ${local.this.env} token"
service_token_permissions {
permission_set = "security_admin"
all_projects = true
}
}
But it doesn't work as I get this result:
│ Error: expected service_token_permissions.0.permission_set to be one of [account_admin admin database_admin git_admin team_admin job_admin job_viewer analyst developer stakeholder readonly project_creator account_viewer metadata_only], got security_admin
Hi, I'm working on setting up a connection with the administrative API to query the audit logs. When setting up the service token to do so I see that the lowest level off permission to give to the token should be security admin. Terraform resource to create the token: resource "dbtcloud_service_token" "datadog-security-admin-token" { name = "Datadog Security Admin ${local.this.env} token"
service_token_permissions { permission_set = "security_admin" all_projects = true } } But it doesn't work as I get this result: │ Error: expected service_token_permissions.0.permission_set to be one of [account_admin admin database_admin git_admin team_admin job_admin job_viewer analyst developer stakeholder readonly project_creator account_viewer metadata_only], got security_admin