【发布时间】:2015-05-12 08:15:04
【问题描述】:
我正在尝试为 AWS Web 服务设置默认区域,特别是 dynamodb。这是我的 boto 配置
.boto
[Credentials]
aws_access_key_id = KEY
aws_secret_access_key = SECRET
[Boto]
autoscale_region_name = us-west-2
当我在不使用连接参数的情况下创建表时,该表是在 us-east-1 而不是 us-west-2 中创建的。
def create_table_ratings():
'''
Schema definition of table ratings
'''
ratings = Table.create('ratings', schema=[
HashKey('user_id', data_type=NUMBER),
RangeKey('photo_id', data_type=NUMBER)
], throughput={
'read': 5,
'write': 15,
})
正确的做法是什么?
【问题讨论】:
标签: python amazon-dynamodb boto