Skip to content

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.

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

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

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.md

About

Atlas CLI plugin for Terraform's MongoDB Atlas Provider

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 10