Skip to content

Conversation

@lantoli
Copy link
Member

@lantoli lantoli commented Sep 8, 2025

Description

Merge 2.0.0 dev branch to master

Link to any related issue(s): CLOUDP-320243

Type of change:

  • Bug fix (non-breaking change which fixes an issue). Please, add the "bug" label to the PR.
  • New feature (non-breaking change which adds functionality). Please, add the "enhancement" label to the PR. A migration guide must be created or updated if the new feature will go in a major version.
  • Breaking change (fix or feature that would cause existing functionality to not work as expected). Please, add the "breaking change" label to the PR. A migration guide must be created or updated.
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the contributing guides
  • I have checked that this change does not generate any credentials and that they are NOT accidentally logged anywhere.
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code
  • If changes include deprecations or removals I have added appropriate changelog entries.
  • If changes include removal or addition of 3rd party GitHub actions, I updated our internal document. Reach out to the APIx Integration slack channel to get access to the internal document.

Further comments

csanx and others added 30 commits June 30, 2025 17:54
…source (#3439)

* WIP

* Fixed acceptance test

* Added a comment

* Added changelog

* Update docs/data-sources/project.md

* Update .changelog/3439.txt

Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>

* PR comments

* Fix

* Arguments fixed

* Fix constant

---------

Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>
Co-authored-by: maastha <122359335+maastha@users.noreply.github.com>
Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>
#3451)

* WIP

* Fixed acceptance test

* Added a comment

* Added changelog

* Added users attribute to projects data source

* Added changelog and fixed docs

* Factored out users schema

* Refactored schemas and fixed test and doc

* Minor code review suggestions and fixed doc

---------

Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>
* chore: Creates temporary workflow to create a test tag using Github actions (#3440)

* chore: Use rebase instead of merge to update dev branches (#3442)

* use rebase instead of merge to update dev branches

* Update .github/workflows/update-dev-branches.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* improve doc

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: Updates repository to use supported Terraform versions (#3450)

Co-authored-by: maastha <122359335+maastha@users.noreply.github.com>

* chore: JSON attributes in auto-generated resources (#3445)

* stream_processor_api config

* marshal JSON custom type

* generate JSON custom type

* formatGoFile

* generated code

* acc test

* fix resouce.tmpl imports

* revert changes to template

* add import for custom types

* wait

* marshal tests

* autogen tests

* acc test with update of equivalent pipeline JSON

* unmarshal test for custom type list

* marshal error test

* join acc tests

* update generated code

* fix marshal tests

* fix delete config

* same config as curated resource

* chore: Use SP10 instead of default SP30 for stream_instance acceptance tests (#3453)

* use SP10 instead of default SP30 for stream_instance

* fix linter

* Revert "fix linter"

This reverts commit 46270c0.

* chore: Replace fwtypes.JSONStringType with jsontypes.NormalizedType (#3452)

* use JSON custom type

* fix linter

* chore: Updates Atlas Go SDK (#3446)

* build(deps): bump go.mongodb.org/atlas-sdk

* sdk changes

---------

Co-authored-by: oarbusi <55513886+oarbusi@users.noreply.github.com>
Co-authored-by: Oriol Arbusi Abadal <oriol.abadal@mongodb.com>

* doc: Updates Terraform Compatibility Matrix documentation (#3449)

Co-authored-by: maastha <122359335+maastha@users.noreply.github.com>

* chore: Remove `links` attributes in auto-generated resources (#3455)

* remove links attributes

* move comment

* chore: Fixes broken link because of ending parenthesis. (#3448)

* chore: Fixes broken link because of ending parenthesis.

* using link markdown syntax to avoid broken link

---------

Co-authored-by: Agustin Bettati <bettatiagustin@gmail.com>

* feat: Adds `send_user_provided_resource_tags` attribute for `mongodbatlas_third_party_integration` (#3454)

* add send_user_provided_resource_tags

* changelog

* fmt

* docs and example

* test

* refactor

* rename files

* new line

* chore: Updates CHANGELOG.md for #3454

* chore: Singletons in auto-generated resources (#3458)

* initial auditing_api and maintenance_window_api generation

* fix unmarshal for empty JSON

* improve maintenance_window_api

* checkDestroy in manual resource tests

* explicit version header

* check apiResp is not nil

* support FixedRequestBody

* auditing except delete

* support FixedRequestBody

* comment in MakeApiError

* comment Unmarshal

* use same flow as in SDK

* rename FixedRequestBody to StaticRequestBody

* codegen tests

* revert unneeded test

* lowering timeout value to ensure creation fails consistently (#3462)

* doc: Fixing inconsistent docs in `federated_settings_org_role_mapping` associated to required attributes (#3460)

* fixing inconsistent documentation

* remove human-readable term in external_group_id attribute

* fix: Avoids 0 itemsPerPage and pageNum when the args are missing in plural data sources (#3459)

* chore: Add windsurf ignore

* fix: Standardizes API params with WithParams pattern and IntPtr conversion

* chore: Adds changelog file

* refactor: use ListBackupExportJobsWithParams for export job listing

* chore: Updates CHANGELOG.md for #3459

* feat: Adds `users` attribute to `mongodbatlas_project` singular data source (#3439)

* WIP

* Fixed acceptance test

* Added a comment

* Added changelog

* Update docs/data-sources/project.md

* Update .changelog/3439.txt

Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>

* PR comments

* Fix

* Arguments fixed

* Fix constant

---------

Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>
Co-authored-by: maastha <122359335+maastha@users.noreply.github.com>
Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>

* feat: Adds users attribute to mongodbatlas_projects plural data source (#3451)

* WIP

* Fixed acceptance test

* Added a comment

* Added changelog

* Added users attribute to projects data source

* Added changelog and fixed docs

* Factored out users schema

* Refactored schemas and fixed test and doc

* Minor code review suggestions and fixed doc

---------

Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>

---------

Co-authored-by: maastha <122359335+maastha@users.noreply.github.com>
Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: oarbusi <55513886+oarbusi@users.noreply.github.com>
Co-authored-by: Oriol Arbusi Abadal <oriol.abadal@mongodb.com>
Co-authored-by: Marco Suma <marco.suma@mongodb.com>
Co-authored-by: Agustin Bettati <bettatiagustin@gmail.com>
Co-authored-by: Espen Albert <EspenAlbert@users.noreply.github.com>
Co-authored-by: Cristina Sánchez <c.sanchezprincipal@gmail.com>
Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>
* chore: Creates temporary workflow to create a test tag using Github actions (#3440)

* chore: Use rebase instead of merge to update dev branches (#3442)

* use rebase instead of merge to update dev branches

* Update .github/workflows/update-dev-branches.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* improve doc

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: Updates repository to use supported Terraform versions (#3450)

Co-authored-by: maastha <122359335+maastha@users.noreply.github.com>

* chore: JSON attributes in auto-generated resources (#3445)

* stream_processor_api config

* marshal JSON custom type

* generate JSON custom type

* formatGoFile

* generated code

* acc test

* fix resouce.tmpl imports

* revert changes to template

* add import for custom types

* wait

* marshal tests

* autogen tests

* acc test with update of equivalent pipeline JSON

* unmarshal test for custom type list

* marshal error test

* join acc tests

* update generated code

* fix marshal tests

* fix delete config

* same config as curated resource

* chore: Use SP10 instead of default SP30 for stream_instance acceptance tests (#3453)

* use SP10 instead of default SP30 for stream_instance

* fix linter

* Revert "fix linter"

This reverts commit 46270c0.

* chore: Replace fwtypes.JSONStringType with jsontypes.NormalizedType (#3452)

* use JSON custom type

* fix linter

* chore: Updates Atlas Go SDK (#3446)

* build(deps): bump go.mongodb.org/atlas-sdk

* sdk changes

---------

Co-authored-by: oarbusi <55513886+oarbusi@users.noreply.github.com>
Co-authored-by: Oriol Arbusi Abadal <oriol.abadal@mongodb.com>

* doc: Updates Terraform Compatibility Matrix documentation (#3449)

Co-authored-by: maastha <122359335+maastha@users.noreply.github.com>

* chore: Remove `links` attributes in auto-generated resources (#3455)

* remove links attributes

* move comment

* chore: Fixes broken link because of ending parenthesis. (#3448)

* chore: Fixes broken link because of ending parenthesis.

* using link markdown syntax to avoid broken link

---------

Co-authored-by: Agustin Bettati <bettatiagustin@gmail.com>

* feat: Adds `send_user_provided_resource_tags` attribute for `mongodbatlas_third_party_integration` (#3454)

* add send_user_provided_resource_tags

* changelog

* fmt

* docs and example

* test

* refactor

* rename files

* new line

* chore: Updates CHANGELOG.md for #3454

* chore: Singletons in auto-generated resources (#3458)

* initial auditing_api and maintenance_window_api generation

* fix unmarshal for empty JSON

* improve maintenance_window_api

* checkDestroy in manual resource tests

* explicit version header

* check apiResp is not nil

* support FixedRequestBody

* auditing except delete

* support FixedRequestBody

* comment in MakeApiError

* comment Unmarshal

* use same flow as in SDK

* rename FixedRequestBody to StaticRequestBody

* codegen tests

* revert unneeded test

* lowering timeout value to ensure creation fails consistently (#3462)

* doc: Fixing inconsistent docs in `federated_settings_org_role_mapping` associated to required attributes (#3460)

* fixing inconsistent documentation

* remove human-readable term in external_group_id attribute

* fix: Avoids 0 itemsPerPage and pageNum when the args are missing in plural data sources (#3459)

* chore: Add windsurf ignore

* fix: Standardizes API params with WithParams pattern and IntPtr conversion

* chore: Adds changelog file

* refactor: use ListBackupExportJobsWithParams for export job listing

* chore: Updates CHANGELOG.md for #3459

* chore: Docs team review improvements in dev branches (#3466)

* TEMPORARY send to test channel

* don't notify docs team if label skip-docs-notification

* TEMPORARY doc change

* add label skip label in update dev branches GHA

* Revert "TEMPORARY doc change"

This reverts commit de69883.

* Revert "TEMPORARY send to test channel"

This reverts commit c7e2746.

* detect changes

* don't create the PR is no new changes

* fix linter

* add step names

* feat: Adds `users` attribute to `mongodbatlas_project` singular data source (#3439)

* WIP

* Fixed acceptance test

* Added a comment

* Added changelog

* Update docs/data-sources/project.md

* Update .changelog/3439.txt

Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>

* PR comments

* Fix

* Arguments fixed

* Fix constant

---------

Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>
Co-authored-by: maastha <122359335+maastha@users.noreply.github.com>
Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>

* feat: Adds users attribute to mongodbatlas_projects plural data source (#3451)

* WIP

* Fixed acceptance test

* Added a comment

* Added changelog

* Added users attribute to projects data source

* Added changelog and fixed docs

* Factored out users schema

* Refactored schemas and fixed test and doc

* Minor code review suggestions and fixed doc

---------

Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>

* chore: Update CLOUDP-320243-dev-2.0.0 from master (#3457)

* chore: Creates temporary workflow to create a test tag using Github actions (#3440)

* chore: Use rebase instead of merge to update dev branches (#3442)

* use rebase instead of merge to update dev branches

* Update .github/workflows/update-dev-branches.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* improve doc

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* chore: Updates repository to use supported Terraform versions (#3450)

Co-authored-by: maastha <122359335+maastha@users.noreply.github.com>

* chore: JSON attributes in auto-generated resources (#3445)

* stream_processor_api config

* marshal JSON custom type

* generate JSON custom type

* formatGoFile

* generated code

* acc test

* fix resouce.tmpl imports

* revert changes to template

* add import for custom types

* wait

* marshal tests

* autogen tests

* acc test with update of equivalent pipeline JSON

* unmarshal test for custom type list

* marshal error test

* join acc tests

* update generated code

* fix marshal tests

* fix delete config

* same config as curated resource

* chore: Use SP10 instead of default SP30 for stream_instance acceptance tests (#3453)

* use SP10 instead of default SP30 for stream_instance

* fix linter

* Revert "fix linter"

This reverts commit 46270c0.

* chore: Replace fwtypes.JSONStringType with jsontypes.NormalizedType (#3452)

* use JSON custom type

* fix linter

* chore: Updates Atlas Go SDK (#3446)

* build(deps): bump go.mongodb.org/atlas-sdk

* sdk changes

---------

Co-authored-by: oarbusi <55513886+oarbusi@users.noreply.github.com>
Co-authored-by: Oriol Arbusi Abadal <oriol.abadal@mongodb.com>

* doc: Updates Terraform Compatibility Matrix documentation (#3449)

Co-authored-by: maastha <122359335+maastha@users.noreply.github.com>

* chore: Remove `links` attributes in auto-generated resources (#3455)

* remove links attributes

* move comment

* chore: Fixes broken link because of ending parenthesis. (#3448)

* chore: Fixes broken link because of ending parenthesis.

* using link markdown syntax to avoid broken link

---------

Co-authored-by: Agustin Bettati <bettatiagustin@gmail.com>

* feat: Adds `send_user_provided_resource_tags` attribute for `mongodbatlas_third_party_integration` (#3454)

* add send_user_provided_resource_tags

* changelog

* fmt

* docs and example

* test

* refactor

* rename files

* new line

* chore: Updates CHANGELOG.md for #3454

* chore: Singletons in auto-generated resources (#3458)

* initial auditing_api and maintenance_window_api generation

* fix unmarshal for empty JSON

* improve maintenance_window_api

* checkDestroy in manual resource tests

* explicit version header

* check apiResp is not nil

* support FixedRequestBody

* auditing except delete

* support FixedRequestBody

* comment in MakeApiError

* comment Unmarshal

* use same flow as in SDK

* rename FixedRequestBody to StaticRequestBody

* codegen tests

* revert unneeded test

* lowering timeout value to ensure creation fails consistently (#3462)

* doc: Fixing inconsistent docs in `federated_settings_org_role_mapping` associated to required attributes (#3460)

* fixing inconsistent documentation

* remove human-readable term in external_group_id attribute

* fix: Avoids 0 itemsPerPage and pageNum when the args are missing in plural data sources (#3459)

* chore: Add windsurf ignore

* fix: Standardizes API params with WithParams pattern and IntPtr conversion

* chore: Adds changelog file

* refactor: use ListBackupExportJobsWithParams for export job listing

* chore: Updates CHANGELOG.md for #3459

* feat: Adds `users` attribute to `mongodbatlas_project` singular data source (#3439)

* WIP

* Fixed acceptance test

* Added a comment

* Added changelog

* Update docs/data-sources/project.md

* Update .changelog/3439.txt

Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>

* PR comments

* Fix

* Arguments fixed

* Fix constant

---------

Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>
Co-authored-by: maastha <122359335+maastha@users.noreply.github.com>
Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>

* feat: Adds users attribute to mongodbatlas_projects plural data source (#3451)

* WIP

* Fixed acceptance test

* Added a comment

* Added changelog

* Added users attribute to projects data source

* Added changelog and fixed docs

* Factored out users schema

* Refactored schemas and fixed test and doc

* Minor code review suggestions and fixed doc

---------

Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>

---------

Co-authored-by: maastha <122359335+maastha@users.noreply.github.com>
Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: oarbusi <55513886+oarbusi@users.noreply.github.com>
Co-authored-by: Oriol Arbusi Abadal <oriol.abadal@mongodb.com>
Co-authored-by: Marco Suma <marco.suma@mongodb.com>
Co-authored-by: Agustin Bettati <bettatiagustin@gmail.com>
Co-authored-by: Espen Albert <EspenAlbert@users.noreply.github.com>
Co-authored-by: Cristina Sánchez <c.sanchezprincipal@gmail.com>
Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>

---------

Co-authored-by: maastha <122359335+maastha@users.noreply.github.com>
Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: oarbusi <55513886+oarbusi@users.noreply.github.com>
Co-authored-by: Oriol Arbusi Abadal <oriol.abadal@mongodb.com>
Co-authored-by: Marco Suma <marco.suma@mongodb.com>
Co-authored-by: Agustin Bettati <bettatiagustin@gmail.com>
Co-authored-by: Espen Albert <EspenAlbert@users.noreply.github.com>
Co-authored-by: Cristina Sánchez <c.sanchezprincipal@gmail.com>
Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>
* master:
  chore: Docs team review improvements in dev branches (#3466)
  chore: Updates CHANGELOG.md for #3459
  fix: Avoids 0 itemsPerPage and pageNum when the args are missing in plural data sources (#3459)
  doc: Fixing inconsistent docs in `federated_settings_org_role_mapping` associated to required attributes (#3460)
  lowering timeout value to ensure creation fails consistently (#3462)
  chore: Singletons in auto-generated resources (#3458)
  chore: Updates CHANGELOG.md for #3454
  feat: Adds `send_user_provided_resource_tags` attribute for `mongodbatlas_third_party_integration` (#3454)
  chore: Fixes broken link because of ending parenthesis. (#3448)
  chore: Remove `links` attributes in auto-generated resources (#3455)
  doc: Updates Terraform Compatibility Matrix documentation (#3449)
  chore: Updates Atlas Go SDK (#3446)
  chore: Replace fwtypes.JSONStringType with jsontypes.NormalizedType (#3452)
  chore: Use SP10 instead of default SP30 for stream_instance acceptance tests (#3453)
  chore: JSON attributes in auto-generated resources (#3445)
  chore: Updates repository to use supported Terraform versions (#3450)
  chore: Use rebase instead of merge to update dev branches (#3442)
  chore: Creates temporary workflow to create a test tag using Github actions (#3440)

# Conflicts:
#	.github/workflows/update-dev-branches.yml
…nd plural data source. (#3468)

* Added `users` attribute, modified test and docs.

* Updated doc

* Fixed test

* Added changelog

* Fixed SDK version

* Update docs/data-sources/organization.md

Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>

* Removed FlattenUsers and related functions from common utility

* Change 3 functions to private visibility

* Added some value checks

* Fixed doc (users attributes to be the same as in the schema)

* Minor changes

* Updated note in docs

* Changed attributes names for consistency and type to TypeSet

* Fix

* Removed TODOs

---------

Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>
Co-authored-by: Leo Antoli <430982+lantoli@users.noreply.github.com>
…rce. (#3483)

* Extracted users attribute common schema to dsschema/users_schema.go

* Added attribute users to team data source

* Modified tests

* Modified doc

* Added changelog

* Update docs/data-sources/team.md

Co-authored-by: davidhou17 <55004296+davidhou17@users.noreply.github.com>

* Update docs/data-sources/team.md

Co-authored-by: davidhou17 <55004296+davidhou17@users.noreply.github.com>

* Addressed comments

* Fixed typos and added comment.

* Refactor: extract regex matchers for tests, relocate and update function visibility

---------

Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>
Co-authored-by: davidhou17 <55004296+davidhou17@users.noreply.github.com>
)

* Changed attribute `users` from Set to List type + attribute `roles` in project to be a Set

* Trigger checks

---------

Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>
…`mongodbatlas_cloud_backup_schedule` resource (#3500)

* change export and auto_export_enabled to Optional only

* changelog

* add test check on unsetting optional attributes

* specify optional in doc

* add migration test

* aws provider in mig test

* fix

* remove todo
…equired (#3499)

* change hour_of_day to required

* correct start_asap

* changelong

* test
…b_role` to not be sensitive to order (#3508)

* rename files

* avoids order sensitivity

* Use TypeSet checks instead of index-based checks for actions

* changelog change

* inline calls in config
* remove logs

* use WithoutTimeout funcs

* timeouts

* delete_on_create_timeout

* changelog

* more generic doc so can be used for any resource

* rename to errWait

* TestAccNetworkNetworkPeering_timeouts

* change doc

* add clarification

* also change error message

* fix TestAccNetworkRSNetworkPeering_Azure

* don't use default

* Revert "fix TestAccNetworkRSNetworkPeering_Azure"

This reverts commit ca9f4e0.

* no need to exclude delete_on_create_timeout in import if Default is not used

* use d.GetOkExists to distinguish empty from zero (false) value

* Update .changelog/3515.txt

Co-authored-by: Javier Armendáriz <136641722+xargom@users.noreply.github.com>

* Update internal/common/cleanup/handle_timeout.go

Co-authored-by: Javier Armendáriz <136641722+xargom@users.noreply.github.com>

* improve changelog

* use new context in cleanup

---------

Co-authored-by: Javier Armendáriz <136641722+xargom@users.noreply.github.com>
)

* Extracted users attribute common schema to dsschema/users_schema.go

* Added attribute users to team data source

* Modified tests

* Modified doc

* Added changelog

* Created ressource, schema and models

* WIP - Implementing Create method

* WIP - Added markdown description for attributes in schema and fixed model functions

* Fixed variables names

* WIP - Implement Read, Update, Delete, Import

* Fixed model attributes names.

* Minor change

* Added tests

* Fix

* Add github

* Fix

* Fix

* Changelog

* Fix

* Fixed function naming

* Changed test

* Changed `project_role_assignments` from List to Set

* Changed the attribute name `project_roles_assignments` to project_role_assignments in `organization` and `team` DS for consistency in naming.

* minor changes

* Fix

* Fix

* Fix

* Changed `project_role_assignments` from List to Set

* Removed redundant check

* Code improvements

* feat: Adds new singular data source `mongodbatlas_cloud_user_team_assignment` (#3517)

* Added DS schema generation and Read operation

* Add to provider

* Fix

* Added tests

* Changelog

* Modified tests

* Removed redundant condition

* Removed IsUserID

---------

Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>

---------

Co-authored-by: Cristina Sánchez Sánchez <cristina.sanchez@mongodb.com>
* wip: timeout improvements

* docs and changelog entry

* Apply suggestions from code review

Co-authored-by: Javier Armendáriz <136641722+xargom@users.noreply.github.com>

---------

Co-authored-by: Javier Armendáriz <136641722+xargom@users.noreply.github.com>
…ter` resource (#3525)

* CreateFlexClusterNew

* changelog

* schema, model & auto-generated doc

* non-updatable for multiple types like string and bool

* rename to create only

* fill Timeouts in model

* remove delete_on_create_timeout  by default in DataSourceSchemaFromResource

* implement timeout and delete_on_create

* resolve timeout refactor

* remove unnecessary update and delete timeouts in test

* pass timeout for update and delete

* explicitly check that cluster does not exist due to delete_on_create_timeout

* timeout as value instead of pointer

* remove redunadnt check

* final fixes for timeout

* improve testing

* remove config on import step

* remove redundant checkDestroy

* remove redundant checkDestroy in adv_cluster test

---------

Co-authored-by: Oriol Arbusi Abadal <oriol.abadal@mongodb.com>
…kup_snapshot` resource (#3536)

* rename

* implement delete_on_create_timeout

* fix delete_on_create_timeout due to lack of update

* refactor test

* rename test

* improve var naming
* doc: Added first draft for upgrade guide 2.0.0 (DOCSP-52120)

* doc: Deleted breaking lines

* Update docs/guides/2.0.0-upgrade-guide.md

Co-authored-by: Oriol <oriol.abadal@mongodb.com>

* Update docs/guides/2.0.0-upgrade-guide.md

Co-authored-by: Oriol <oriol.abadal@mongodb.com>

---------

Co-authored-by: Oriol <oriol.abadal@mongodb.com>
…utage_simulation` resource (#3541)

* implement delete_on_create_timeout

* wait for delete in clean up to avoid trying to delete cluster before outage has been deleted

* use delete timeout(or default if not present) for clean up

* delete when state is SIMULATING

* increate time to reach simulating

* add missing timeout field in docs
…chive` resource (#3542)

* implement delete_on_create_timeout

* renames

* fix

* use v2 in delete

* date criteria

* config
…nk_endpoint` resource (#3543)

* implement delete_on_create_timeout

* rename files

* add forcenew

* correct doc

* make sure delete on create is finished

* Revert "make sure delete on create is finished"

This reverts commit 31ce923.

* reuse project to avoid issues on project deletion
…nk_endpoint_service` resource (#3545)

* renames and timeout fixes

* changelog

* changelog

* wait for delete to complete

* Revert "wait for delete to complete"

This reverts commit e994e9f.

* use existing privatelink_endpoint and clean up
AgustinBettati and others added 19 commits August 25, 2025 11:48
…dev branch (#3617)

* removing version constraint in new examples associated to 2.0 dev branch

* formatting fix
…rces in subcategories by feature (#3629)

* moves docs into individual folders

* aligning file structure to hashicorp file structure

* adjust file mode

* adjusting templates

* revert unrelated change

* fixing some category headings, adjusting cluster resource to be more explicit on deprecation

* fix duplicate markdown frontmatter and align format for depreated resource/data sources

* rename Search to Atlas Search
…ks (#3643)

* adjust script and release commit file

* adjust files to be commited

* adding comment

* test: Update example links in registry docs for v2.0.0 release

* Revert "test: Update example links in registry docs for v2.0.0 release"

This reverts commit 2e64ddb.

* simplify script avoiding complex target expression
…#3640)

* Adding guidance on pinning provider version in our index.md docs

* apply suggestion
…vider_access_setup` resource (#3660)

* long running operation improvements for cloud_provider_access_setup

* changelog

* docs

* add test

* correct timeouts

* correct cloud provider

* fix typo

* add check destroy
@lantoli lantoli marked this pull request as ready for review September 8, 2025 16:47
Copilot AI review requested due to automatic review settings September 8, 2025 16:47
@lantoli lantoli requested review from a team as code owners September 8, 2025 16:47
@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2025

APIx bot: a message has been sent to Docs Slack channel

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR merges the 2.0.0 development branch to master, bringing significant updates to the MongoDB Atlas Terraform provider including new migration examples, updated documentation with version guidance, and enhanced resource attribute configurations.

  • Adds comprehensive migration examples for org invitations to cloud user assignments
  • Updates cluster resource examples to use new array syntax throughout documentation
  • Introduces new example configurations for atlas user migration workflows

Reviewed Changes

Copilot reviewed 300 out of 733 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
examples/migrate_org_invitation_to_cloud_user_org_assignment/* New migration example showing transition from org invitations to cloud user assignments
examples/migrate_atlas_user_and_atlas_users/* Complete migration workflow examples for atlas user data sources
docs/resources/* Updated resource documentation with subcategory headers and new array syntax
docs/troubleshooting.md Updated cluster configuration syntax to use array format
docs/guides/* Updated migration guides with version compatibility information

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

cd v2
cp ../v1/terraform.tfstate . # if you are not using a remote state
export MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER=true # necessary for the `moved` block to work
export MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER=true # skip this if using version 2.0 or later
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The comment should clarify that this environment variable is completely unnecessary for version 2.0+ rather than just 'skip this'. Consider: '# not required for version 2.0 or later'

Suggested change
export MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER=true # skip this if using version 2.0 or later
export MONGODB_ATLAS_PREVIEW_PROVIDER_V2_ADVANCED_CLUSTER=true # not required for version 2.0 or later

Copilot uses AI. Check for mistakes.
The main steps are:

1. [Enable the `mongodbatlas_advanced_cluster` preview for MongoDB Atlas Provider 2.0.0](#enable-the-mongodbatlas_advanced_cluster-preview)
1. *(Only required if using version lower than 2.0)* [Enable the `mongodbatlas_advanced_cluster` preview for MongoDB Atlas Provider 2.0.0](#enable-the-mongodbatlas_advanced_cluster-preview)
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The step refers to 'MongoDB Atlas Provider 2.0.0' but should refer to 'versions lower than 2.0' for consistency with the parenthetical note.

Copilot uses AI. Check for mistakes.
* `day_of_week` - (Required) Day of the week when you would like the maintenance window to start as a 1-based integer: Su=1, M=2, T=3, W=4, T=5, F=6, Sa=7.
* `hour_of_day` - Hour of the day when you would like the maintenance window to start. This parameter uses the 24-hour clock, where midnight is 0, noon is 12 (Time zone is UTC). Defaults to 0.
* `start_asap` - Flag indicating whether project maintenance has been directed to start immediately. If you request that maintenance begin immediately, this field returns true from the time the request was made until the time the maintenance event completes.
* `hour_of_day` - (Required) Hour of the day when you would like the maintenance window to start. This parameter uses the 24-hour clock, where midnight is 0, noon is 12 (Time zone is UTC).
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation shows hour_of_day as Required, but this conflicts with the comment on line 50 that says it defaults to 0. Either the field should be Optional or the default behavior should be clarified.

Suggested change
* `hour_of_day` - (Required) Hour of the day when you would like the maintenance window to start. This parameter uses the 24-hour clock, where midnight is 0, noon is 12 (Time zone is UTC).
* `hour_of_day` - (Optional) Hour of the day when you would like the maintenance window to start. This parameter uses the 24-hour clock, where midnight is 0, noon is 12 (Time zone is UTC). Defaults to 0 if not specified.

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed in: #3668

@lantoli lantoli merged commit ab237ab into master Sep 9, 2025
114 of 119 checks passed
svc-apix-Bot added a commit that referenced this pull request Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants