Skip to content

Conversation

AgustinBettati
Copy link
Member

@AgustinBettati AgustinBettati commented Aug 28, 2025

Description

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

Changes include:

  • adding the markdown frontmatter to all our doc pages so that the terraform registry places them under sub categories.
  • Align all deprecation notes to have the same format

Note: For reviewing highly suggest looking into https://registry.terraform.io/providers/AgustinBettati/agustinbettati/0.0.6/docs which shows how the resulting docs will look.

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

@@ -1,5 +1,5 @@
---
subcategory: "Deprecated"
subcategory: "MongoDB Cloud Users"
Copy link
Member Author

Choose a reason for hiding this comment

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

aligning to statement defined in our PD: Deprecated resources and data sources will remain in their feature heading but with a clear label at the top of the page that the resource is deprecated (i.e. we will remove the separate “Deprecated” heading at the top level).

---

**WARNING:** This data source is deprecated and will be removed in January 2026. 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).
~> **DEPRECATION:** This data source is deprecated and will be removed in January 2026. 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).
Copy link
Member Author

Choose a reason for hiding this comment

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

small formatting adjustment aligning all deprecated resources/data sources, ~> ** stands out much more



~> **IMPORTANT:** We recommend all new MongoDB Atlas Terraform users start with the [`mongodbatlas_advanced_cluster`](advanced_cluster) resource. Key differences between [`mongodbatlas_cluster`](cluster) and [`mongodbatlas_advanced_cluster`](advanced_cluster) include support for [Multi-Cloud Clusters](https://www.mongodb.com/blog/post/introducing-multicloud-clusters-on-mongodb-atlas), [Asymmetric Sharding](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/advanced-cluster-new-sharding-schema), and [Independent Scaling of Analytics Node Tiers](https://www.mongodb.com/blog/post/introducing-ability-independently-scale-atlas-analytics-node-tiers). For existing [`mongodbatlas_cluster`](cluster) resource users see our [Migration Guide](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/cluster-to-advanced-cluster-migration-guide).
~> **DEPRECATION:** This resource is deprecated and will be removed in the next major release. Please use `mongodbatlas_advanced_cluster`. For more details, see [our migration guide](https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/guides/cluster-to-advanced-cluster-migration-guide).
Copy link
Member Author

Choose a reason for hiding this comment

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

Adjusted deprecation message to make it stand out more. Also noticed message below was outdated as it had a softer recommendation, removed as all details can now be found in the dedicated migration guide.

@AgustinBettati AgustinBettati marked this pull request as ready for review August 29, 2025 09:25
@Copilot Copilot AI review requested due to automatic review settings August 29, 2025 09:25
@AgustinBettati AgustinBettati requested review from a team as code owners August 29, 2025 09:25
Copy link
Contributor

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

Copy link
Contributor

@Copilot 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 reorganizes the MongoDB Atlas Terraform provider documentation by adding subcategory frontmatter to all documentation pages and standardizing deprecation notice formatting. The primary goal is to improve documentation organization in the Terraform Registry by grouping resources and data sources by feature.

Key changes:

  • Added YAML frontmatter with subcategory metadata to 200+ documentation files
  • Standardized deprecation notice formatting from "WARNING:" to "~> DEPRECATION:"
  • Moved deprecated resources from "Deprecated" subcategory to their appropriate feature subcategories

Reviewed Changes

Copilot reviewed 219 out of 219 changed files in this pull request and generated 1 comment.

File Description
templates/resources/*.md.tmpl Added subcategory frontmatter to resource documentation templates
templates/data-sources/*.md.tmpl Added subcategory frontmatter to data source documentation templates
docs/resources/*.md Added subcategory frontmatter to resource documentation files
docs/data-sources/*.md Added subcategory frontmatter to data source documentation files

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

Copy link
Collaborator

@EspenAlbert EspenAlbert left a comment

Choose a reason for hiding this comment

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

Feels like a bit too many categories IMO.
Suggestions:

  1. Remove extra flex categories: Flex Restore Jobs/ Flex Snapshots --> use Flex Clusters instead
  2. Is shared tier really necessary? Looks like we only have datasources
  3. Missing a bigger project category with auditing and maintenance window and possibly more
  4. Organization could also be a bigger category
  5. Network could be a separte category.

Curious to the reasoning behind these categories?

@@ -1,3 +1,7 @@
---
subcategory: "Event Trigger"
Copy link
Member

Choose a reason for hiding this comment

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

should be in "Realm API" category according to PD appendix, same for other trigger docs

Copy link
Member Author

Choose a reason for hiding this comment

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

There is an explicit note in the PD Two exceptions to the resource group matching will be needed at launch: roles_org_id will not go under Root but Organization and event_trigger will simply go under Event Trigger..
Do we have context of who created the appendix section? It seems to be inconsistent. cc @maastha in case you have more context.

Copy link
Member

Choose a reason for hiding this comment

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

ok, let's keep it

Copy link

@antellezr-mdb antellezr-mdb left a comment

Choose a reason for hiding this comment

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

LGTM

@AgustinBettati AgustinBettati merged commit 00c3f50 into CLOUDP-320243-dev-2.0.0 Sep 1, 2025
42 checks passed
@AgustinBettati AgustinBettati deleted the CLOUDP-334500-rebased branch September 1, 2025 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants