# Output DynamoDB Endpoint

**URL:** <https://forum.serverless.com/t/output-dynamodb-endpoint/5559>\
**Category:** Serverless Framework\
**Tags:** dynamodb\
**Created:** [August 24, 2018, 5:05pm UTC](https://forum.serverless.com/t/output-dynamodb-endpoint/5559 "2018-08-24T17:05:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulcruseSG](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@paulcruseSG](https://forum.serverless.com/u/paulcruseSG)\
**Post date:** [August 24, 2018, 5:05pm UTC](https://forum.serverless.com/t/output-dynamodb-endpoint/5559/1 "2018-08-24T17:05:25Z")

</div>

Is there a way I can capture the end-point for the dynamodb generated by serverless?

I am currently able to capture the ARN, by:

```
resources:
    Resources:
        TenantkeysTable:
            Type: 'AWS::DynamoDB::Table'
            Properties:
                TableName: tenantkeys
                AttributeDefinitions:
                    -
                        AttributeName: tenant_key
                        AttributeType: S
                KeySchema:
                    -
                        AttributeName: tenant_key
                        KeyType: HASH
                ProvisionedThroughput:
                    ReadCapacityUnits: 10
                    WriteCapacityUnits: 10

provider:
    iamRoleStatements:
    -
        Effect: Allow
        Action:
            - dynamodb:*
        Resource:
            - Fn::GetAtt: [TenantkeysTable, "Arn"]

```

But is there a `endpoint` equivalent?

---

<div class="post-metadata">

**Author:** ![buggy](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/buggy/32/177_2.png) [@buggy](https://forum.serverless.com/u/buggy)\
**Post date:** [August 26, 2018, 6:31am UTC](https://forum.serverless.com/t/output-dynamodb-endpoint/5559/2 "2018-08-26T06:31:07Z")

</div>

The DynamoDB endpoint is always `dynamodb.REGION.amazonaws.com` so you should be able to generate that yourself using `dynamodb.${self:provider.region}.amazonaws.com`.

---

<div class="post-metadata">

**Author:** ![dadvir](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/dadvir/32/2490_2.png) [@dadvir](https://forum.serverless.com/u/dadvir)\
**Post date:** [September 3, 2018, 10:18am UTC](https://forum.serverless.com/t/output-dynamodb-endpoint/5559/3 "2018-09-03T10:18:36Z")

</div>

Why does the endpoint contain the stage? I’ve a similar issue and I don’t understand…  
I want the ability to run local and point it to AWS ddb without having to install and run a local ddb instance.  
I think this is a bug, what do you think?

---

<div class="post-metadata">

**Author:** ![buggy](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/buggy/32/177_2.png) [@buggy](https://forum.serverless.com/u/buggy)\
**Post date:** [September 4, 2018, 11:05am UTC](https://forum.serverless.com/t/output-dynamodb-endpoint/5559/4 "2018-09-04T11:05:30Z")

</div>

@dadvir My mistake. That should have been `region` instead of `stage`. I got it right earlier in my response but put used the wrong variable. I’ll edit the response to make it right.
