https://pulumi.com logo
Title
p

polite-kite-18322

01/18/2022, 12:29 AM
When I try to set the "key" it asks for it complains about missing namespace:
pulumi 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>`)
I believe it's complaining about the key itself. I was able to set keys with fewer
:
segments. Still not sure how to satisfy the tooling though 😞
e

echoing-dinner-19531

01/18/2022, 10:21 AM
What instructions are you following? That does look like ill formed config key so its strange to see that from an error unless the call to config.get was ill formed.
@echoing-dinner-19531 thanks for responding! This is very frustrating 🙂
wiped my stack to start over in case my stack name MongoDB was confusing the tooling.
When I try to import i get a much more useful error:
error: 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.
Turns out you must set the environment variables in order to do `pulumi import`:
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
I don't see any way to inspect/provision MongoDB collections or databases?
@echoing-dinner-19531 am I missing something obvious?
e

echoing-dinner-19531

01/18/2022, 10:22 PM
Turns 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.
1
p

polite-kite-18322

01/19/2022, 12:36 AM
I don't need to configure the data - was just looking to provision tables but I see that the Terraform provider does not seem to address that.