尝试连接本地 dynamodb 时出错

问题描述

''' ddb = boto3.resource('dynamodb',在此输入代码endpoint_url='http://localhost:8000') 打印(列表(ddb.tables.all()))

returns below,Could you tell what is the issue here?

***NOTE:*** Local dynamodb is up & running:
dynamodb_local_latest.tar\dynamodb_local_latest>java -Djava.library.path=./DynamoDBLocal_lib - 
jar DynamoDBLocal.jar -sharedDb
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Initializing DynamoDB Local with the following configuration:
Port:   8000
InMemory:       false
DbPath: null
SharedDb:       true
shouldDelayTransientStatuses:   false
CorsParams:     *

预期回报: botocore.exceptions.ClientError: 调用 ListTables 时发生错误 (403)

Your system policy has denied access to the requested URL.

'''

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)