title: How to configure AmazonDynamoDBAsyncClient endpoint from sbt-dynamodb settings
body: <p>I'm using <a href="https://github.com/grahamar/sbt-dynamodb" rel="nofollow">sbt-dynamodb</a> plugin run local AWS DynamoDB for my integration tests. To set up a AWS SDK client I need to provide a client endpoit as</p>
  
  <pre><code>val sdkClient = new AmazonDynamoDBAsyncClient(awsCreds)
  sdkClient.setEndpoint("http://localhost:8000")
  </code></pre>
  
  <p>The plugin allows to configure the DB port number in build.sbt as</p>
  
  <pre><code>DynamoDBLocal.Keys.dynamoDBLocalPort := Some(8080)
  </code></pre>
  
  <p>How to access that sbt key (port number) from my test code? To do something like:</p>
  
  <pre><code>val dbPort = ???    // get from Keys.dynamoDBLocalPort somehow
  sdkClient.setEndpoint("http://localhost:" + dbPort")
  </code></pre>
  
  <p>Thanks!</p>