I am following the pynamodb documentation

```
class Thread(Model):
    class Meta:
        read_capacity_units = 1
        write_capacity_units = 1
        table_name = "Thread"
        region = 'us-west-1'
        host = "http://localhost:8888"

    forum_name = UnicodeAttribute(hash_key=True)
    subject = UnicodeAttribute(range_key=True)
    views = NumberAttribute(default=0)
    replies = NumberAttribute(default=0)
    answered = NumberAttribute(default=0)
    tags = UnicodeSetAttribute()
    last_post_datetime = UTCDateTimeAttribute(null=True)

# Delete the table
# print(Thread.delete_table())

# Create the table
if not Thread.exists():
    Thread.create_table(wait=True)

```

When i run above code it gives error:

```
DEBUG:pynamodb.connection.base:Calling DescribeTable with arguments {'TableName': 'Thread'}

```

and raises exception: 

```
raise TableError("Unable to describe table: {0}".format(e), e)

```

TableError: Unable to describe table: Unable to locate credentials

How to provide the pynamodb aws\_secret\_key\_id and aws\_access key. I am running the example on local computer using dynamodb local.

How I provide the credential information in pynamodb. I did set environment variables of the aws\_secret\_key\_id and aws\_access\_key but still credential exeception

Is there any way to provide the aws\_access\_key\_id and aws\_secret\_access\_key as a parameter in the pynamodb like bellow example:-

this code working and create the database but i want use the pynamodb library

```
dynamodb = boto3.resource('dynamodb',
                          region_name='us-west-2',
                          aws_access_key_id="access key",
                          aws_secret_access_key="secret acess key",
                          endpoint_url="http://localhost:8888")

```