This repository contains the Atlas CLI plugin for Terraform's MongoDB Atlas Provider.
WIP
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 want to convert a Terraform configuration from mongodbatlas_cluster
to mongodbatlas_advanced_cluster
schema v2, use the following command:
atlas terraform clusterToAdvancedCluster --file in.tf --output out.tf
you can also use shorter aliases, e.g.:
atlas tf clu2adv -f in.tf -o out.tf
If you want to overwrite the output file if it exists, or even use the same output file as the input file, use the --overwriteOutput true
or the -w
flag.
See our CONTRIBUTING.md guide.
MongoDB Atlas CLI is released under the Apache 2.0 license. See LICENSE.md