Skip to content

Atlas CLI plugin for Terraform's MongoDB Atlas Provider

License

Notifications You must be signed in to change notification settings

mongodb-labs/atlas-cli-plugin-terraform

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

About

Atlas CLI plugin for Terraform's MongoDB Atlas Provider

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •