-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
dbtcloud_group_partial_permissions
fails with a timeout while still creating the resource. The resource actually gets created many times over, causing duplicates in the API resource.

Error message
│ Error: Unable to assign permissions to the group
│
│ with dbtcloud_group_partial_permissions.bu_engineer,
│ on 03-dbt_cloud.tf line 150, in resource "dbtcloud_group_partial_permissions" "bu_engineer":
│ 150: resource "dbtcloud_group_partial_permissions" "bu_engineer" {
│
│ Error: Post
│ "[https://emea.dbt.com/api/v3/accounts/123/group-permissions/9635/"](https://emea.dbt.com/api/v3/accounts/123/group-permissions/123/%22): context
│ deadline exceeded (Client.Timeout exceeded while awaiting headers)
Resource configuration
resource "dbtcloud_group_partial_permissions" "bu_engineer" {
name = "_DDI - ${upper(var.business_unit)} - Engineer"
sso_mapping_groups = ["DDI_${var.business_unit}_PLATFORM_ENGINEER"]
group_permissions = [
{
permission_set = "developer"
all_projects = false
project_id = dbtcloud_project.project.id
writable_environment_categories = ["all"]
},
{
permission_set = "job_viewer"
all_projects = false
project_id = dbtcloud_project.project.id
writable_environment_categories = []
}
]
}
Expected behavior
One permission per project as defined in the configuration instead of >500
Config (please complete the following information):
( the version can be retrieved running the command terraform providers
)
- dbt Cloud provider version [e.g. 0.2.12]
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working