我已删除之前的信用,然后再次获取新凭据时说:Unable to load AWS_CREDENTIAL_FILE
[root@server-104 ~]# rm ~/creds/*
rm: remove regular file `/root/creds/admin.zip'? yes
rm: remove regular file `/root/creds/cloud-cert.pem'? yes
rm: remove regular file `/root/creds/euca2-admin-7d0b1e85-cert.pem'? yes
rm: remove regular file `/root/creds/euca2-admin-7d0b1e85-pk.pem'? yes
rm: remove regular file `/root/creds/eucarc'? yes
rm: remove regular file `/root/creds/iamrc'? yes
rm: remove regular file `/root/creds/jssecacerts'? yes
rm: remove regular empty file `/root/creds/sshlogin'? yes
[root@server-104 ~]# cd ~/creds/
[root@server-104 creds]# euca-get-credentials admin.zip
/usr/lib/python2.6/site-packages/boto/pyami/config.py:75: UserWarning: Unable to load AWS_CREDENTIAL_FILE (/root/creds/iamrc)
warnings.warn('Unable to load AWS_CREDENTIAL_FILE (%s)' % full_path)
答案 0 :(得分:1)
它仍然应该下载凭证。
但是为了将来参考,在下载新的管理员凭据之前,请尝试重新登录会话或取消设置所有与Eucalyptus相关的环境变量并尝试下载凭据。
你不应该再看到这个警告了。