dbt-labs / terraform-provider-dbtcloud

dbt Cloud Terraform Provider
https://registry.terraform.io/providers/dbt-labs/dbtcloud
MIT License
80 stars 18 forks source link

resource "dbtcloud_service_token" is missing 'security_admin' in the permission_set #217

Closed jensegerod closed 7 months ago

jensegerod commented 7 months ago

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

jensegerod commented 7 months ago

this is the same issue as in https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/216