terricain / aioboto3

Wrapper to use boto3 resources with the aiobotocore async backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'ResourceCreatorContext' object has no attribute 'Table'

henried-li opened this issue · comments

  • Async AWS SDK for Python version: 11.2
  • Python version: 3.10.9
  • Operating System: MacOS

Description

While using aioboto3 to define dynamodb tables, error of 'ResourceCreatorContext' object has no attribute 'Table' was thrown.

What I Did

import aioboto3

dynamo = aioboto3.Session().resource('dynamodb')
table = dynamo.Table('test_table')

None of that is async python. Check out the readme on how to use it, there's a dynamodb example there.