Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.27 KB

README.md

File metadata and controls

40 lines (25 loc) · 1.27 KB

Atlas CLI plugin for Terraform's MongoDB Atlas Provider

Code Health

This repository contains the Atlas CLI plugin for Terraform's MongoDB Atlas Provider.

WIP

Installing

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

Usage

Convert cluster to advanced_cluster v2

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.

Contributing

See our CONTRIBUTING.md guide.

License

MongoDB Atlas CLI is released under the Apache 2.0 license. See LICENSE.md