0

''' ddb = boto3.resource('dynamodb', 在此处输入代码endpoint_url='http://localhost:8000') print(list(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.

'''

4

0 回答 0