Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Removes mentions and examples of Serverless and Shared-tier instances #2811

Merged
merged 4 commits into from
Nov 22, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions docs/resources/cluster.md
Original file line number Diff line number Diff line change
@@ -187,19 +187,6 @@ resource "mongodbatlas_cluster" "cluster-test" {
}
}
```
### Example AWS Shared Tier (M2/M5) cluster
Copy link
Collaborator

Choose a reason for hiding this comment

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

on Advanced Cluster page Tenant example https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/resources/advanced_cluster#example-tenant-cluster can we also update example from "M5" to "M0"? all good from my end after you make this update

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done!

```terraform
resource "mongodbatlas_cluster" "cluster-test" {
project_id = "<YOUR-PROJECT-ID>"
name = "cluster-test-global"
# Provider Settings "block"
provider_name = "TENANT"
backing_provider_name = "AWS"
provider_region_name = "US_EAST_1"
provider_instance_size_name = "M2"
}
```
### Example AWS Free Tier cluster
```terraform
resource "mongodbatlas_cluster" "cluster-test" {

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions templates/data-source.md.tmpl
Original file line number Diff line number Diff line change
@@ -9,9 +9,7 @@
{{ else if eq .Name "mongodbatlas_privatelink_endpoint" }}
{{ tffile (printf "examples/%s/aws/cluster/main.tf" .Name )}}
{{ else if eq .Name "mongodbatlas_privatelink_endpoint_service_serverless" }}
Copy link
Member

Choose a reason for hiding this comment

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

else if can also be deleted as they're empty now for deleted if content

{{ tffile (printf "examples/%s/aws/main.tf" .Name )}}
{{ else if eq .Name "mongodbatlas_privatelink_endpoint_serverless" }}
{{ tffile "examples/mongodbatlas_privatelink_endpoint_service_serverless/aws/main.tf" }}
{{ else if eq .Name "mongodbatlas_cluster" }}
{{ tffile (printf "examples/%s/tenant-upgrade/main.tf" .Name )}}
{{ else if eq .Name "mongodbatlas_cluster" }}
2 changes: 0 additions & 2 deletions templates/resources.md.tmpl
Original file line number Diff line number Diff line change
@@ -9,9 +9,7 @@
{{ else if eq .Name "mongodbatlas_privatelink_endpoint" }}
{{ tffile (printf "examples/%s/aws/cluster/main.tf" .Name )}}
{{ else if eq .Name "mongodbatlas_privatelink_endpoint_service_serverless" }}
{{ tffile (printf "examples/%s/aws/main.tf" .Name )}}
{{ else if eq .Name "mongodbatlas_privatelink_endpoint_serverless" }}
{{ tffile "examples/mongodbatlas_privatelink_endpoint_service_serverless/aws/main.tf" }}
{{ else if eq .Name "mongodbatlas_cluster" }}
{{ tffile (printf "examples/%s/tenant-upgrade/main.tf" .Name )}}
{{ else if eq .Name "mongodbatlas_cluster" }}