Help us shape the future of Go! Take the 2026 Go Developer Survey

atlas-cli-plugin-terraform

module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2025 License: Apache-2.0

README

Atlas CLI plugin for Terraform's MongoDB Atlas Provider

Code Health

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

Installation

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

If you want to uninstall the plugin, run:

atlas plugin uninstall atlas-cli-plugin-terraform

Available Commands

The plugin provides the following commands to help with your Terraform configurations:

1. clusterToAdvancedCluster (clu2adv)

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

2. advancedClusterToV2 (adv2v2)

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

Full Documentation | Migration Guide: Advanced Cluster (v1.x → v2.0.0)

Feedback

If you find any issues or have any suggestions, please open an issue in this repository.

Contributing

See our CONTRIBUTING.md guide.

License

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

Directories

Path Synopsis
cmd
plugin command
internal
cli
hcl
test
e2e

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL