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
Copy file name to clipboardExpand all lines: docs/data-sources/project.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ In addition to all arguments above, the following attributes are exported:
79
79
*`cluster_count` - The number of Atlas clusters deployed in the project.
80
80
*`created` - The ISO-8601-formatted timestamp of when Atlas created the project.
81
81
*`tags` - Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. To learn more, see [Resource Tags](https://www.mongodb.com/docs/atlas/tags/)
82
-
*`teams` - Returns all teams to which the authenticated user has access in the project. See [Teams](#teams).
82
+
*`teams` - **(DEPRECATED)**Returns all teams to which the authenticated user has access in the project. See [Teams](#teams).
83
83
*`limits` - The limits for the specified project. See [Limits](#limits).
84
84
*`ip_addresses` - IP addresses in a project categorized by services. See [IP Addresses](#ip-addresses). **WARNING:** This attribute is deprecated, use the `mongodbatlas_project_ip_addresses` data source instead.
85
85
*`users` - Returns list of all pending and active MongoDB Cloud users associated with the specified project.
@@ -94,6 +94,8 @@ In addition to all arguments above, the following attributes are exported:
94
94
95
95
### Teams
96
96
97
+
~> **DEPRECATION:** This attribute is deprecated and will be removed in the next major release. Please transition to `mongodbatlas_team_project_assignment`. For more details, see [Migration Guide: Project Teams Attribute to Team Project Assignment Resource](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/team_project_assignment_migration_guide).
98
+
97
99
*`team_id` - The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.
98
100
*`role_names` - Each string in the array represents a project role assigned to the team. Every user associated with the team inherits these roles. The [MongoDB Documentation](https://www.mongodb.com/docs/atlas/reference/user-roles/#organization-roles) describes the roles a user can have.
Copy file name to clipboardExpand all lines: docs/data-sources/projects.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ data "mongodbatlas_projects" "test" {
55
55
*`cluster_count` - The number of Atlas clusters deployed in the project.
56
56
*`created` - The ISO-8601-formatted timestamp of when Atlas created the project.
57
57
*`tags` - Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. To learn more, see [Resource Tags](https://www.mongodb.com/docs/atlas/tags/)
58
-
*`teams` - Returns all teams to which the authenticated user has access in the project. See [Teams](#teams).
58
+
*`teams` - **(DEPRECATED)**Returns all teams to which the authenticated user has access in the project. See [Teams](#teams).
59
59
*`limits` - The limits for the specified project. See [Limits](#limits).
60
60
*`ip_addresses` - IP addresses in a project categorized by services. See [IP Addresses](#ip-addresses). **WARNING:** This attribute is deprecated, use the `mongodbatlas_project_ip_addresses` data source instead.
61
61
*`users` - Returns list of all pending and active MongoDB Cloud users associated with the specified project.
@@ -70,6 +70,8 @@ data "mongodbatlas_projects" "test" {
70
70
71
71
### Teams
72
72
73
+
~> **DEPRECATION:** This attribute is deprecated and will be removed in the next major release. Please transition to `mongodbatlas_team_project_assignment`. For more details, see [Migration Guide: Project Teams Attribute to Team Project Assignment Resource](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/team_project_assignment_migration_guide).
74
+
73
75
*`team_id` - The unique identifier of the team you want to associate with the project. The team and project must share the same parent organization.
74
76
*`role_names` - Each string in the array represents a project role assigned to the team. Every user associated with the team inherits these roles. The [MongoDB Documentation](https://www.mongodb.com/docs/atlas/reference/user-roles/#organization-roles) describes the roles a user can have.
Copy file name to clipboardExpand all lines: docs/data-sources/team.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ In addition to all arguments above, the following attributes are exported:
50
50
*`id` - Terraform's unique identifier used internally for state management.
51
51
*`team_id` - The unique identifier for the team.
52
52
*`name` - The name of the team you want to create.
53
-
*`usernames` - The users who are part of the team.
53
+
*`usernames` - **(DEPRECATED)**The users who are part of the team. This attribute is deprecated and will be removed in the next major release. Please transition to `data.mongodbatlas_team.users`. For more details, see [Migration Guide: Team Usernames Attribute to Cloud User Team Assignment](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/cloud_user_team_assignment_migration_guide.md).
54
54
*`users`- Returns a list of all pending and active MongoDB Cloud users associated with the specified team.
Copy file name to clipboardExpand all lines: docs/guides/2.0.0-upgrade-guide.md
+44-8Lines changed: 44 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,15 @@ MongoDB Atlas Provider 2.0.0: Upgrade and Information Guide
8
8
9
9
# MongoDB Atlas Provider 2.0.0: Upgrade and Information Guide
10
10
11
-
The Terraform MongoDB Atlas Provider version 2.0.0 has the following new features and breaking changes:
11
+
The Terraform MongoDB Atlas Provider version 2.0.0 introduces new features, breaking changes, and resource deprecations/removals.
12
+
13
+
Use this guide to understand what’s new, what requires migration, and how to update your configurations.
12
14
13
15
## New Resources, Data Sources, and Features
14
16
15
-
-**New `delete_on_create_timeout` attribute**: Multiple resources now support a `delete_on_create_timeout` boolean attribute that controls cleanup behavior when resource creation times out. When set to `true` (default), the provider will delete the underlying resource if the create operation times out, helping to avoid orphaned resources. This attribute is available in the following resources:
17
+
### New `delete_on_create_timeout` attribute
18
+
19
+
Multiple resources now support a `delete_on_create_timeout` boolean attribute that controls cleanup behavior when resource creation times out. When set to `true` (default), the provider will delete the underlying resource if the create operation times out, helping to avoid orphaned resources. This attribute is available in the following resources:
16
20
-`mongodbatlas_advanced_cluster`
17
21
-`mongodbatlas_cloud_backup_snapshot`
18
22
-`mongodbatlas_cluster_outage_simulation`
@@ -26,6 +30,14 @@ The Terraform MongoDB Atlas Provider version 2.0.0 has the following new feature
26
30
-`mongodbatlas_search_deployment`
27
31
-`mongodbatlas_stream_processor`
28
32
33
+
### New Cloud User Assignment Resources
34
+
35
+
New user and team management resources that replace deprecated invitation-based workflow:
36
+
-`mongodbatlas_cloud_user_org_assignment` resource and data source: Manages user membership in organizations with structured roles and support for both pending and active memberships.
37
+
-`mongodbatlas_cloud_user_project_assignment` resource and data source: Manages user membership in projects with automatic invitation handling based on organization membership status.
38
+
-`mongodbatlas_cloud_user_team_assignment` resource and data source: Manages user membership in teams with support for both username and user ID.
39
+
-`mongodbatlas_team_project_assignment` resource and data source: Manages team assignments to projects.
40
+
29
41
## Breaking Changes
30
42
31
43
### `mongodbatlas_cloud_backup_schedule`
@@ -57,22 +69,46 @@ Data source:
57
69
## Removed resources & data sources
58
70
59
71
-`mongodbatlas_cloud_provider_snapshot`
60
-
This deprecated resource & data source(s) have been removed. Please use `mongodbatlas_cloud_backup_snapshot` instead
72
+
This deprecated resource & data source(s) have been removed. Please use `mongodbatlas_cloud_backup_snapshot` instead.
This deprecated resource & data source(s) have been removed. Please use `mongodbatlas_cloud_backup_snapshot_restore_job` instead
78
+
This deprecated resource & data source(s) have been removed. Please use `mongodbatlas_cloud_backup_snapshot_restore_job` instead.
67
79
68
80
-`mongodbatlas_privatelink_endpoint_serverless`
69
-
This deprecated resource & data source(s) have been removed. For more details, see [Migration Guide: Transition out of Serverless Instances and Shared-tier clusters](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/serverless-shared-migration-guide)
81
+
This deprecated resource & data source(s) have been removed. For more details, see [Migration Guide: Transition out of Serverless Instances and Shared-tier clusters](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/serverless-shared-migration-guide).
This deprecated resource & data source(s) have been removed. For more details, see [Migration Guide: Transition out of Serverless Instances and Shared-tier clusters](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/serverless-shared-migration-guide)
84
+
This deprecated resource & data source(s) have been removed. For more details, see [Migration Guide: Transition out of Serverless Instances and Shared-tier clusters](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/serverless-shared-migration-guide).
73
85
74
86
-`mongodbatlas_teams`
75
-
This deprecated resource & data source(s) have been removed. Please use `mongodbatlas_team` instead
87
+
This deprecated resource & data source(s) have been removed. Please use `mongodbatlas_team` instead.
88
+
89
+
## Deprecations
90
+
91
+
Version 2.0.0 introduces several deprecations as part of modernizing the provider's user and invitation management. These deprecated resources and attributes **will be removed in a future major version release**. Migration guides are available to help transition to the recommended replacements:
92
+
93
+
### Resources and Data sources
94
+
95
+
-**`mongodbatlas_cluster` resource and data sources**: Deprecated. Use `mongodbatlas_advanced_cluster` resource and data sources instead. See [the Cluster to Advanced Cluster Migration Guide](../guides/cluster-to-advanced-cluster-migration-guide).
96
+
97
+
-**`mongodbatlas_org_invitation` resource and data source**: Deprecated. Use `mongodbatlas_cloud_user_org_assignment` resource instead. See the [Org Invitation to Cloud User Org Assignment Migration Guide](../guides/org-invitation-to-cloud-user-org-assignment-migration-guide.md) for migration steps.
98
+
99
+
-**`mongodbatlas_project_invitation` resource and data source**: Deprecated. Use `mongodbatlas_cloud_user_project_assignment` resource instead. See the [Project Invitation to Cloud User Project Assignment Migration Guide](../guides/project-invitation-to-cloud-user-project-assignment-migration-guide.md) for migration steps.
100
+
101
+
-**`mongodbatlas_atlas_user` data source**: Deprecated. Use `mongodbatlas_cloud_user_org_assignment` data source instead. See the [Migration Guide: Migrate off deprecated `mongodbatlas_atlas_user` and `mongodbatlas_atlas_users`](../guides/atlas-user-migration-guide.md) for migration steps.
102
+
103
+
-**`mongodbatlas_atlas_users` data source**: Deprecated. Use the `users` attribute on `mongodbatlas_organization`, `mongodbatlas_project`, or `mongodbatlas_team` data sources respectively. See the [Migration Guide: Migrate off deprecated `mongodbatlas_atlas_user` and `mongodbatlas_atlas_users`](../guides/atlas-user-migration-guide.md) for migration steps.
104
+
105
+
### Attributes
106
+
107
+
-**`teams` attribute in `mongodbatlas_project` resource and data source**: Deprecated. Use `mongodbatlas_team_project_assignment` resource and data source to manage team membership to projects. See [Project Teams Attribute to Team Project Assignment Resource Migration Guide](../guides/team_project_assignment_migration_guide) for migration steps.
108
+
109
+
-**`email_address` attribute in `mongodbatlas_atlas_user` and `mongodbatlas_atlas_users` data sources**: Deprecated. See the [Migration Guide: Migrate off deprecated `mongodbatlas_atlas_user` and `mongodbatlas_atlas_users`](../guides/atlas-user-migration-guide.md) for migration steps.
110
+
111
+
-**`usernames` attribute in `mongodbatlas_team` resource and data source**: Deprecated. Use `mongodbatlas_cloud_user_team_assignment` resource to manage team membership per user and team. See the [Team Usernames Attribute to Cloud User Team Assignment Migration guide](../guides/cloud_user_team_assignment_migration_guide.md) for migration steps.
76
112
77
113
2.0.0 also includes general improvements, bug fixes, and several key documentation updates. See the [CHANGELOG](https://github.com/mongodb/terraform-provider-mongodbatlas/blob/master/CHANGELOG.md) for more specific information.
0 commit comments