Skip to content

INTMDB-323 Remove beta requirement for serverless #783

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

Merged
merged 4 commits into from
Jul 13, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 4 additions & 4 deletions mongodbatlas/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ func getDataSourcesMap() map[string]*schema.Resource {
"mongodbatlas_federated_settings_org_configs": dataSourceMongoDBAtlasFederatedSettingsOrganizationConfigs(),
"mongodbatlas_federated_settings_org_role_mapping": dataSourceMongoDBAtlasFederatedSettingsOrganizationRoleMapping(),
"mongodbatlas_federated_settings_org_role_mappings": dataSourceMongoDBAtlasFederatedSettingsOrganizationRoleMappings(),
"mongodbatlas_serverless_instance": dataSourceMongoDBAtlasServerlessInstance(),
"mongodbatlas_serverless_instances": dataSourceMongoDBAtlasServerlessInstances(),
}
return dataSourcesMap
}
Expand Down Expand Up @@ -187,16 +189,14 @@ func getResourcesMap() map[string]*schema.Resource {
"mongodbatlas_federated_settings_org_config": resourceMongoDBAtlasFederatedSettingsOrganizationConfig(),
"mongodbatlas_federated_settings_org_role_mapping": resourceMongoDBAtlasFederatedSettingsOrganizationRoleMapping(),
"mongodbatlas_federated_settings_identity_provider": resourceMongoDBAtlasFederatedSettingsIdentityProvider(),
"mongodbatlas_serverless_instance": resourceMongoDBAtlasServerlessInstance(),
}
return resourcesMap
}

func addBetaFeatures(provider *schema.Provider) {
if ProviderEnableBeta {
provider.ResourcesMap["mongodbatlas_serverless_instance"] = resourceMongoDBAtlasServerlessInstance()

provider.DataSourcesMap["mongodbatlas_serverless_instance"] = dataSourceMongoDBAtlasServerlessInstance()
provider.DataSourcesMap["mongodbatlas_serverless_instances"] = dataSourceMongoDBAtlasServerlessInstances()
return
}
}

Expand Down
3 changes: 1 addition & 2 deletions website/docs/d/serverless_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ Provides a Serverless Instance.
# mongodbatlas_serverless_instance

`mongodbatlas_serverless_instance` describe a single serverless instance. This represents a single serverless instance that have been created.
> **NOTE:** Serverless instances are in a preview release and do not support some Atlas features at this time.
> **NOTE:** Serverless instances do not support some Atlas features at this time.
For a full list of unsupported features, see [Serverless Instance Limitations](https://docs.atlas.mongodb.com/reference/serverless-instance-limitations/).
> In order to use this datasource in Terraform you'll need to set the environment variable `MONGODB_ATLAS_ENABLE_BETA=true`.


> **NOTE:** Groups and projects are synonymous terms. You may find `groupId` in the official documentation.
Expand Down
3 changes: 1 addition & 2 deletions website/docs/d/serverless_instances.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ Describes a Serverless Instances.

`mongodbatlas_serverless_instances` describe all serverless instances. This represents serverless instances that have been created for the specified group id.

> **NOTE:** Serverless instances are in a preview release and do not support some Atlas features at this time.
> **NOTE:** Serverless instances do not support some Atlas features at this time.
For a full list of unsupported features, see [Serverless Instance Limitations](https://docs.atlas.mongodb.com/reference/serverless-instance-limitations/).
> In order to use this datasource in Terraform you'll need to set the environment variable `MONGODB_ATLAS_ENABLE_BETA=true`.

> **NOTE:** Groups and projects are synonymous terms. You may find `groupId` in the official documentation.

Expand Down
3 changes: 1 addition & 2 deletions website/docs/r/serverless_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ Provides a Serverless Instance resource.

`mongodbatlas_serverless_instance` provides a Serverless Instance resource. This allows serverless instances to be created.

> **NOTE:** Serverless instances are in a preview release and do not support some Atlas features at this time.
> **NOTE:** Serverless instances do not support some Atlas features at this time.
For a full list of unsupported features, see [Serverless Instance Limitations](https://docs.atlas.mongodb.com/reference/serverless-instance-limitations/).
> In order to use this resource in Terraform you'll need to set the environment variable `MONGODB_ATLAS_ENABLE_BETA=true`.

## Example Usage

Expand Down