This message was deleted.
# getting-started
s
This message was deleted.
p
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
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:
Copy code
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`:
Copy code
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
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
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.