polite-kite-18322
01/18/2022, 12:29 AMpulumi config set MongoDB:mongodbatlas:orgID <org-id>
error: invalid configuration key: could not parse MongoDB:mongodbatlas:orgID as a configuration key (configuration keys should be of the form `<namespace>:<name>`)
:
segments. Still not sure how to satisfy the tooling though 😞echoing-dinner-19531
01/18/2022, 10:21 AMpolite-kite-18322
01/18/2022, 5:55 PMerror: Preview failed: refreshing urn:pulumi:mongo::mongo::mongodbatlas:index/project:Project::Center: 1 error occurred:
* error getting project(<projectid>): GET <https://cloud.mongodb.com/api/atlas/v1.0/groups/><projectid>: 401 (request "") You are not authorized for this resource.
export MONGODB_ATLAS_PUBLIC_KEY=XXXXXXXXXXXXXX
export MONGODB_ATLAS_PRIVATE_KEY=YYYYYYYYYYYYYY
I assumed it would use the values i'd embedded into the pulumi config
echoing-dinner-19531
01/18/2022, 10:22 PMTurns out you must set the environment variables in order to do `pulumi import`:That sounds like a bug. I'm pretty sure even for import we should be loading the config and passing it to the provider. Can you raise an issue at https://github.com/pulumi/pulumi-mongodbatlas about that?
I don't see any way to inspect/provision MongoDB collections or databases?I don't think the provider (ours or the underlying terraform provider) has support for configuring the database data itself.
polite-kite-18322
01/19/2022, 12:36 AM