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.
Steps to reproduce
Set the config values
pulumi config set mongodbatlas:publicKey XXXXXXXXXXXXXX --secret
pulumi config set mongodbatlas:privateKey YYYYYYYYYYYYYY --secret
Hello!
Issue details
Was trying to adopt an existing MongoDB project. Following directions here: https://www.pulumi.com/registry/packages/mongodbatlas/installation-configuration/
I was getting 401's when trying to import:
Steps to reproduce
When I did this:
the import succeeded.