atlascli icon indicating copy to clipboard operation
atlascli copied to clipboard

Cant connect to Project or cluster key not accepting

Open darshana-danrox opened this issue 5 years ago • 1 comments

I have given key details on the terminal and also try define as env variable but none working

Note : ip white listed

$ echo $ATLAS_PUBLIC_KEY
SxxxxWxxxx
$ echo $ATLAS_PRIVATE_KEY
xc4xxxxxxxx-4xxxxx1-xxxxx-xxxxxxxx6xx
$ atlascli --publickey xxxxxxxxxu --privatekey fcx9xxxxxxxx-4xxxx1-8xxxx-4xxxxxx
Traceback (most recent call last):
  File "/usr/local/bin/atlascli", line 11, in <module>
    load_entry_point('mongodbatlas==0.2.3b2', 'console_scripts', 'atlascli')()
  File "/usr/local/lib/python3.7/site-packages/mongodbatlas-0.2.3b2-py3.7.egg/mongodbatlas/atlascli.py", line 192, in main
  File "/usr/local/lib/python3.7/site-packages/mongodbatlas-0.2.3b2-py3.7.egg/mongodbatlas/api.py", line 50, in get_this_organization
  File "/usr/local/lib/python3.7/site-packages/mongodbatlas-0.2.3b2-py3.7.egg/mongodbatlas/atlasorganization.py", line 9, in __init__
  File "/usr/local/lib/python3.7/site-packages/mongodbatlas-0.2.3b2-py3.7.egg/mongodbatlas/atlasresource.py", line 22, in __init__
  File "/usr/local/lib/python3.7/site-packages/mongodbatlas-0.2.3b2-py3.7.egg/mongodbatlas/apimixin.py", line 62, in __init__
  File "/usr/local/lib/python3.7/site-packages/mongodbatlas-0.2.3b2-py3.7.egg/mongodbatlas/atlaskey.py", line 35, in get_from_env
  File "/usr/local/lib/python3.7/site-packages/mongodbatlas-0.2.3b2-py3.7.egg/mongodbatlas/atlaskey.py", line 30, in getenv
 `mongodbatlas.errors.AtlasEnvironmentError: Private key environment variable 'ATLAS_PUBLIC_KEY' is not set`

darshana-danrox avatar Dec 01 '19 13:12 darshana-danrox

I think this is working in the latest release. Can you give it another try?

https://pypi.org/project/mongodbatlas/

jdrumgoole avatar Mar 08 '20 22:03 jdrumgoole