# Deploy the Resources Repo

**URL:** <https://discourse.sst.dev/t/deploy-the-resources-repo/1320>\
**Category:** Chapter Comments\
**Created:** [October 9, 2019, 1:50am UTC](https://discourse.sst.dev/t/deploy-the-resources-repo/1320 "2019-10-09T01:50:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [October 9, 2019, 1:50am UTC](https://discourse.sst.dev/t/deploy-the-resources-repo/1320/1 "2019-10-09T01:50:25Z")

</div>

Link to chapter - [https://serverless-stack.com/chapters/deploy-the-resources-repo.html](https://serverless-stack.com/chapters/deploy-the-resources-repo.html)

---

<div class="post-metadata">

**Author:** ![king](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@king](https://discourse.sst.dev/u/king)\
**Post date:** [November 12, 2020, 12:02am UTC](https://discourse.sst.dev/t/deploy-the-resources-repo/1320/2 "2020-11-12T00:02:36Z")

</div>

Hi,

when you deploy the resources with the new sst setup, the table name does not contain “…-notes” anymore. Instead it’s some cryptic name. How would you define the table name.

Sincerely,  
Thanks,

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [November 12, 2020, 1:08am UTC](https://discourse.sst.dev/t/deploy-the-resources-repo/1320/3 "2020-11-12T01:08:37Z")

</div>

Instead of specifying the exact table name in our `serverless.yml`, we import it.

> <https://github.com/AnomalyInnovations/serverless-stack-demo-api/blob/master/services/notes/serverless.yml#L29>

---

<div class="post-metadata">

**Author:** ![king](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@king](https://discourse.sst.dev/u/king)\
**Post date:** [November 12, 2020, 1:45pm UTC](https://discourse.sst.dev/t/deploy-the-resources-repo/1320/4 "2020-11-12T13:45:42Z")

</div>

I know, but where do we set it in the resources repo? Doesn’t seem to be set?

Would you need to set it in:

```
 const table = new dynamodb.Table(this, "Table", {
  billingMode: dynamodb.BillingMode.PAY_PER_REQUEST, // Use on-demand billing mode
  sortKey: { name: "noteId", type: dynamodb.AttributeType.STRING },
  partitionKey: { name: "userId", type: dynamodb.AttributeType.STRING },
});

```

and add

```
  tableName: 'your_tablename',

```

?

---

<div class="post-metadata">

**Author:** ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)\
**Post date:** [November 12, 2020, 8:51pm UTC](https://discourse.sst.dev/t/deploy-the-resources-repo/1320/5 "2020-11-12T20:51:46Z")

</div>

We just need to export the one that is automatically created.

> <https://github.com/AnomalyInnovations/serverless-stack-demo-ext-resources/blob/master/lib/DynamoDBStack.js#L18>

Note the `TableName` export here and the import that we have in the `serverless.yml`.

You could hardcode it. But this way guarantees that won’t have any name collisions.
