Output DynamoDB Endpoint

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?

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.

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?

@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.