You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to delete team and remove from project in single operation, perhaps a separate attachment resource would help rather than having to define within the project resource. e.g. mongodbatlas_teams_attachment to allow the team to be attached to a project.
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform v1.1.4
on darwin_amd64
+ provider registry.terraform.io/mongodb/mongodbatlas v1.2.0
Team should be removed from project and then deleted
Actual Behavior
Terraform attempts to delete the team first and errors due to its attachment to the project
Debug Output
Plan: 0 to add, 1 to change, 1 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
mongodbatlas_teams.team["Team1"]: Destroying... [id=]
╷
│ Error: error deleting Team (<team_id>): DELETE https://cloud.mongodb.com/api/atlas/v1.0/orgs/<org_id>/teams/<team_id>: 404 (request "CANNOT_DELETE_TEAM_ASSIGNED_TO_PROJECT") You cannot delete a team that has at least one project assigned to it. Make sure to remove the team from all project before deleting it.
The text was updated successfully, but these errors were encountered:
Unable to delete team and remove from project in single operation, perhaps a separate attachment resource would help rather than having to define within the project resource. e.g.
mongodbatlas_teams_attachment
to allow the team to be attached to a project.Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform Configuration File
Steps to Reproduce
Expected Behavior
Team should be removed from project and then deleted
Actual Behavior
Terraform attempts to delete the team first and errors due to its attachment to the project
Debug Output
The text was updated successfully, but these errors were encountered: