This repository contains the Atlas CLI plugin for Terraform's MongoDB Atlas Provider.
Install the Atlas CLI if you haven't done it yet.
Install the plugin by running:
atlas plugin install github.com/mongodb-labs/atlas-cli-plugin-terraform
If you have it installed and want to update it to the latest version, run:
atlas plugin update mongodb-labs/atlas-cli-plugin-terraform
If you want to see the list of installed plugins or check if this plugin is installed, run:
atlas plugin list
The plugin provides the following commands to help with your Terraform configurations:
Convert mongodbatlas_cluster
resources to mongodbatlas_advanced_cluster
Provider 2.0.0 schema.
Quick Start:
atlas terraform clusterToAdvancedCluster --file in.tf --output out.tf
# or using alias
atlas tf clu2adv -f in.tf -o out.tf
📖 Full Documentation | 🔄 Migration Guide: Cluster to Advanced Cluster
Convert previous mongodbatlas_advanced_cluster
configurations to the new Provider 2.0.0 schema with simplified structure.
Quick Start:
atlas terraform advancedClusterToV2 --file in.tf --output out.tf
# or using alias
atlas tf adv2v2 -f in.tf -o out.tf
If you find any issues or have any suggestions, please open an issue in this repository.
See our CONTRIBUTING.md guide.
MongoDB Atlas CLI is released under the Apache 2.0 license. See LICENSE.md