diff --git a/cfn-resources/README.md b/cfn-resources/README.md index 9426e9766..8f45233db 100644 --- a/cfn-resources/README.md +++ b/cfn-resources/README.md @@ -39,7 +39,7 @@ Note these are also hosted on AWS CloudFormation Public Registry under Third Par | 26 | project-invitation | ![Build](https://img.shields.io/badge/GA-green) | [example](../examples/project-invitation/project-invitation.json) | [./project-invitation/test](./project-invitation/test) | | 27 | project-ip-access-list | ![Build](https://img.shields.io/badge/GA-green) | [example](../examples/project-ip-access-list/ip-access-list.yaml) | [./project-ip-access-list/test](./project-ip-access-list/test) | | 28 | search-index | ![Build](https://img.shields.io/badge/GA-green) | [example](../examples/search-index/searchIndex.json) | [./search-indexes/test](./search-indexes/test) | -| 29 | serverless-instance | ![Build](https://img.shields.io/badge/GA-green) | [example](../examples/serverless-instance/serverless-instance.json) | [./serverless-instance/test](./serverless-instance/test) | +| 29 | serverless-instance | ![Build](https://img.shields.io/badge/Deprecated-red) | [example](../examples/serverless-instance/serverless-instance.json) | [./serverless-instance/test](./serverless-instance/test) | | 30 | teams | ![Build](https://img.shields.io/badge/GA-green) | [example](../examples/teams/teams.json) | [./teams/test](./teams/test) | | 31 | third-party-integration | ![Build](https://img.shields.io/badge/GA-green) | [example files](../examples/thirdpartyintegrations) | [./third-party-integration/test](./third-party-integration/test) | | 32 | trigger | ![Build](https://img.shields.io/badge/GA-green) | [example](../examples/trigger/trigger.json) | [./trigger/test](./trigger/test) | @@ -47,7 +47,7 @@ Note these are also hosted on AWS CloudFormation Public Registry under Third Par | 34 | federated-database-instance | ![Build](https://img.shields.io/badge/GA-green) | [example](../examples/federated-database-instance/federatedDatabaseInstance.json) | [./federated-database-instance/test](./federated-database-instance/test) | | 35 | privatelink-endpoint-service-data-federation-online-archive | ![Build](https://img.shields.io/badge/GA-green) | [example](../examples/privatelink-endpoint-service-data-federation-online-archive/privatelink-endpoint-service-data-federation-online-archive.json) | [./privatelink-endpoint-service-data-federation-online-archive/test](./privatelink-endpoint-service-data-federation-online-archive/test) | | 36 | federated-query-limit | ![Build](https://img.shields.io/badge/GA-green) | [example](../examples/federated-query-limit/federatedQueryLimit.json) | [./federated-query-limit/test](./federated-query-limit/test) | -| 37 | serverless-private-endpoint | ![Build](https://img.shields.io/badge/GA-green) | [example](../examples/serverless-private-endpoint/serverless-private-endpoint-with-aws-private-endpoint.json) | [./serverless-private-endpoint/test](./serverless-private-endpoint/test) | +| 37 | serverless-private-endpoint | ![Build](https://img.shields.io/badge/Deprecated-red) | [example](../examples/serverless-private-endpoint/serverless-private-endpoint-with-aws-private-endpoint.json) | [./serverless-private-endpoint/test](./serverless-private-endpoint/test) | | 38 | api-key | ![Build](https://img.shields.io/badge/GA-green) | [example](../examples/api-key/api-key.json) | [./api-key/test](./api-key/test) | | 39 | access-list-api-key | ![Build](https://img.shields.io/badge/GA-green) | [example](../examples/access-list-api-key/access-list-api-key.json) | [./access-list-api-key/test](./access-list-api-key/test) | | 40 | data-lake-pipeline | ![Build](https://img.shields.io/badge/Deprecated-red) | [example](../examples/data-lake-pipeline/datalakepipeline.json) | [./data-lake-pipeline/test](./data-lake-pipeline/test) | diff --git a/cfn-resources/cloud-backup-restore-jobs/README.md b/cfn-resources/cloud-backup-restore-jobs/README.md index be10efcc1..8c36606f2 100644 --- a/cfn-resources/cloud-backup-restore-jobs/README.md +++ b/cfn-resources/cloud-backup-restore-jobs/README.md @@ -3,6 +3,8 @@ ## Description Resource for managing [Cloud BackUp Restore Jobs](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Cloud-Backup-Restore-Jobs). +**WARNING:** `serverless` instance type is deprecated and will be removed in January 2026. For more details, see [Migrate your programmatic tools from M2, M5, or Serverless Instances to Flex Clusters](https://www.mongodb.com/docs/atlas/flex-migration/). + ## Requirements Set up an AWS profile to securely give CloudFormation access to your Atlas credentials. diff --git a/cfn-resources/cloud-backup-restore-jobs/docs/README.md b/cfn-resources/cloud-backup-restore-jobs/docs/README.md index 52c5e00b1..2e3aef4f3 100644 --- a/cfn-resources/cloud-backup-restore-jobs/docs/README.md +++ b/cfn-resources/cloud-backup-restore-jobs/docs/README.md @@ -63,7 +63,7 @@ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/l #### InstanceType -Type of instance specified on the Instance Name serverless or cluster +Type of instance specified on the Instance Name serverless or cluster. **WARNING:** `serverless` instance type is deprecated and will be removed in January 2026. For more details, see [Migrate your programmatic tools from M2, M5, or Serverless Instances to Flex Clusters](https://www.mongodb.com/docs/atlas/flex-migration/). _Required_: Yes diff --git a/cfn-resources/cloud-backup-restore-jobs/mongodb-atlas-cloudbackuprestorejobs.json b/cfn-resources/cloud-backup-restore-jobs/mongodb-atlas-cloudbackuprestorejobs.json index 1f72731ce..d7cc521ff 100644 --- a/cfn-resources/cloud-backup-restore-jobs/mongodb-atlas-cloudbackuprestorejobs.json +++ b/cfn-resources/cloud-backup-restore-jobs/mongodb-atlas-cloudbackuprestorejobs.json @@ -28,7 +28,7 @@ "type": "string" }, "InstanceType": { - "description": "Type of instance specified on the Instance Name serverless or cluster", + "description": "Type of instance specified on the Instance Name serverless or cluster. **WARNING:** `serverless` instance type is deprecated and will be removed in January 2026. For more details, see [Migrate your programmatic tools from M2, M5, or Serverless Instances to Flex Clusters](https://www.mongodb.com/docs/atlas/flex-migration/).", "type": "string", "enum": [ "serverless", diff --git a/cfn-resources/cloud-backup-restore-jobs/test/cfn-test-create-inputs.sh b/cfn-resources/cloud-backup-restore-jobs/test/cfn-test-create-inputs.sh index c328f89e8..d2a8ebd48 100755 --- a/cfn-resources/cloud-backup-restore-jobs/test/cfn-test-create-inputs.sh +++ b/cfn-resources/cloud-backup-restore-jobs/test/cfn-test-create-inputs.sh @@ -36,7 +36,7 @@ ClusterName=$projectName clusterId=$(atlas clusters list --projectId "${projectId}" --output json | jq --arg NAME "${ClusterName}" -r '.results[]? | select(.name==$NAME) | .id') if [ -z "$clusterId" ]; then echo "creating cluster.." - atlas clusters create "${ClusterName}" --projectId "${projectId}" --backup --provider AWS --region US_EAST_1 --members 3 --tier M10 --mdbVersion 5.0 --diskSizeGB 10 --output=json + atlas clusters create "${ClusterName}" --projectId "${projectId}" --backup --provider AWS --region US_EAST_1 --members 3 --tier M10 --mdbVersion 8.0 --diskSizeGB 10 --output=json atlas clusters watch "${ClusterName}" --projectId "${projectId}" echo -e "Created Cluster \"${ClusterName}\"" fi diff --git a/cfn-resources/serverless-instance/README.md b/cfn-resources/serverless-instance/README.md index dfaac7a84..12df67ab0 100644 --- a/cfn-resources/serverless-instance/README.md +++ b/cfn-resources/serverless-instance/README.md @@ -1,5 +1,7 @@ # MongoDB::Atlas::ServerlessInstance +**WARNING:** This resource is deprecated and will be removed in January 2026. For more details, see [Migrate your programmatic tools from M2, M5, or Serverless Instances to Flex Clusters](https://www.mongodb.com/docs/atlas/flex-migration/). + ## Description Resource for managing [Serverless Instances](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Serverless-Instances). diff --git a/cfn-resources/serverless-instance/cmd/resource/config.go b/cfn-resources/serverless-instance/cmd/resource/config.go new file mode 100644 index 000000000..4d9eb7831 --- /dev/null +++ b/cfn-resources/serverless-instance/cmd/resource/config.go @@ -0,0 +1,19 @@ +// Code generated by 'cfn generate', changes will be undone by the next invocation. DO NOT EDIT. +// Updates to this type are made my editing the schema file and executing the 'generate' command. +package resource + +import "github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler" + +// TypeConfiguration is autogenerated from the json schema +type TypeConfiguration struct { +} + +// Configuration returns a resource's configuration. +func Configuration(req handler.Request) (*TypeConfiguration, error) { + // Populate the type configuration + typeConfig := &TypeConfiguration{} + if err := req.UnmarshalTypeConfig(typeConfig); err != nil { + return typeConfig, err + } + return typeConfig, nil +} diff --git a/cfn-resources/serverless-instance/docs/README.md b/cfn-resources/serverless-instance/docs/README.md index 669e13714..7c8a961c9 100644 --- a/cfn-resources/serverless-instance/docs/README.md +++ b/cfn-resources/serverless-instance/docs/README.md @@ -1,6 +1,6 @@ # MongoDB::Atlas::ServerlessInstance -Returns, adds, edits, and removes serverless instances. +**WARNING:** This resource is deprecated and will be removed in January 2026. For more details, see [Migrate your programmatic tools from M2, M5, or Serverless Instances to Flex Clusters](https://www.mongodb.com/docs/atlas/flex-migration/). Returns, adds, edits, and removes serverless instances. ## Syntax diff --git a/cfn-resources/serverless-instance/mongodb-atlas-serverlessinstance.json b/cfn-resources/serverless-instance/mongodb-atlas-serverlessinstance.json index 114f93567..70d51baab 100644 --- a/cfn-resources/serverless-instance/mongodb-atlas-serverlessinstance.json +++ b/cfn-resources/serverless-instance/mongodb-atlas-serverlessinstance.json @@ -2,7 +2,7 @@ "typeName": "MongoDB::Atlas::ServerlessInstance", "sourceUrl": "https://github.com/mongodb/mongodbatlas-cloudformation-resources/tree/master/cfn-resources/serverless-instance", "additionalProperties": false, - "description": "Returns, adds, edits, and removes serverless instances.", + "description": "**WARNING:** This resource is deprecated and will be removed in January 2026. For more details, see [Migrate your programmatic tools from M2, M5, or Serverless Instances to Flex Clusters](https://www.mongodb.com/docs/atlas/flex-migration/). Returns, adds, edits, and removes serverless instances.", "definitions": { "ServerlessInstanceConnectionStrings": { "type": "object", diff --git a/cfn-resources/serverless-private-endpoint/README.md b/cfn-resources/serverless-private-endpoint/README.md index e54c2eae4..4286243d2 100644 --- a/cfn-resources/serverless-private-endpoint/README.md +++ b/cfn-resources/serverless-private-endpoint/README.md @@ -1,5 +1,7 @@ # MongoDB::Atlas::ServerlessPrivateEndpoint +**WARNING:** This resource is deprecated and will be removed in May 2025. If you try to create a new ServerlessInstance, you will create a Flex cluster. As a result, you can't create ServerlessPrivateEndpoints for these new instances. For more details, see [Migrate your programmatic tools from M2, M5, or Serverless Instances to Flex Clusters](https://www.mongodb.com/docs/atlas/flex-migration/). + Resource for creating and managing [Private Endpoint Services](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/v2/#tag/Serverless-Private-Endpoints). If the CreateAndAssignAWSPrivateEndpoint Only the Atlas private endpoint will be deleted, the AWS private endpoint will remain and might need to be deleted manually diff --git a/cfn-resources/serverless-private-endpoint/docs/README.md b/cfn-resources/serverless-private-endpoint/docs/README.md index c1ba9c094..c67be0e6f 100644 --- a/cfn-resources/serverless-private-endpoint/docs/README.md +++ b/cfn-resources/serverless-private-endpoint/docs/README.md @@ -1,6 +1,6 @@ # MongoDB::Atlas::ServerlessPrivateEndpoint -Returns, adds, edits, and removes private endpoints for serverless instances. To learn more, see the Atlas Administration API tab on the following tutorial. +**WARNING:** This resource is deprecated and will be removed in May 2025. If you try to create a new ServerlessInstance, you will create a Flex cluster. As a result, you can't create ServerlessPrivateEndpoints for these new instances. For more details, see [Migrate your programmatic tools from M2, M5, or Serverless Instances to Flex Clusters](https://www.mongodb.com/docs/atlas/flex-migration/). Returns, adds, edits, and removes private endpoints for serverless instances. To learn more, see the Atlas Administration API tab on the following tutorial. ## Syntax diff --git a/cfn-resources/serverless-private-endpoint/mongodb-atlas-serverlessprivateendpoint.json b/cfn-resources/serverless-private-endpoint/mongodb-atlas-serverlessprivateendpoint.json index a592c73c5..cae6c74f0 100644 --- a/cfn-resources/serverless-private-endpoint/mongodb-atlas-serverlessprivateendpoint.json +++ b/cfn-resources/serverless-private-endpoint/mongodb-atlas-serverlessprivateendpoint.json @@ -1,6 +1,6 @@ { "typeName": "MongoDB::Atlas::ServerlessPrivateEndpoint", - "description": "Returns, adds, edits, and removes private endpoints for serverless instances. To learn more, see the Atlas Administration API tab on the following tutorial.", + "description": "**WARNING:** This resource is deprecated and will be removed in May 2025. If you try to create a new ServerlessInstance, you will create a Flex cluster. As a result, you can't create ServerlessPrivateEndpoints for these new instances. For more details, see [Migrate your programmatic tools from M2, M5, or Serverless Instances to Flex Clusters](https://www.mongodb.com/docs/atlas/flex-migration/). Returns, adds, edits, and removes private endpoints for serverless instances. To learn more, see the Atlas Administration API tab on the following tutorial.", "sourceUrl": "https://github.com/mongodb/mongodbatlas-cloudformation-resources/tree/master/cfn-resources/serverless-private-endpoint", "definitions": { "awsPrivateEndpointConfig": {