MongoDB Atlas + Steampipe
Steampipe is an open source CLI to instantly query cloud APIs using SQL.
MongoDB Atlas is a multi-cloud data platform powered by MongoDB.
Example query:
select id, namefrom mongodbatlas_project;
+--------------------------+-----------+| id | name |+--------------------------+-----------+| 6272xxxxxxxxxxxxxxxxec00 | Project 1 |+--------------------------+-----------+
Documentation
Get started
Install
Download and install the latest MongoDB Atlas plugin
steampipe plugin install mongodbatlas
Configuration
Installing the latest mongodbatlas plugin will create a config file (~/.steampipe/config/mongodbatlas.spc
) with a single connection named mongodbatlas
:
connection "mongodbatlas" { plugin = "mongodbatlas"
# See https://www.mongodb.com/docs/atlas/configure-api-access/#create-an-api-key-in-an-organization # for information on how to generate API keys.
# Public key of the API key. # Can also be set with the MONGODB_ATLAS_PUBLIC_API_KEY environment variable. # public_key = "hnxxxxxo"
# Private key of the API key. # Can also be set with the MONGODB_ATLAS_PRIVATE_API_KEY environment variable. # private_key = "xxxxxxxx-xxxx-4xxx-axxx-dxxxxxxxd9fc"}
public_key
- (optional) The API public key from the MongoDB Atlas console. Can also be set with theMONGODB_ATLAS_PUBLIC_API_KEY
environment variable.private_key
- (optional) The API private key from the MongoDB Atlas console. Can also be set with theMONGODB_ATLAS_PRIVATE_API_KEY
environment variable.
Get involved
- Open source: https://github.com/turbot/steampipe-plugin-mongodbatlas
- Community: Slack Channel