对于从AWS、python和boto开始的人来说,这似乎是一个非常常见的错误。你知道吗
NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV4Handler'] Check your credentials
我知道凭据是正确的,因为我用它们来测试以前的东西,比如rds连接。你知道吗
rds脚本如下:
import boto.rds as rds
import boto3 as b3
import boto
from sqlalchemy import create_engine
conn = boto.rds.connect_to_region("us-west-2",aws_access_key_id='<ID>',aws_secret_access_key='<KEY>')
engine = create_engine('postgresql://my_id:my_pass@datawarehouse.stuff.us-west-2.rds.amazonaws.com/db_name', echo=False)
res = engine.execute("select * from table")
print res,engine
它运行正常。你知道吗
专有网络方面有什么我不知道的吗?访问权限?你知道吗
让我发疯了!你知道吗
我已经在用户级(而不是系统级)将BOTO_CONFIG
设置为C:/Users/%USER%/boto.config
。你知道吗
而C:/Users/%USER%/boto.config
读作:
[default]
aws_access_key_id = <MY_ID>
aws_secret_access_key = <MY_SECRET>
print boto.__version__
收益率:
2.40.0
谢谢你的帮助。你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐