# Same custom domain for multiple CRUD API's/Tables

**URL:** <https://discourse.sst.dev/t/same-custom-domain-for-multiple-crud-apis-tables/2823>\
**Category:** General\
**Created:** [June 16, 2023, 11:53am UTC](https://discourse.sst.dev/t/same-custom-domain-for-multiple-crud-apis-tables/2823 "2023-06-16T11:53:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnharper0602](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/johnharper0602/32/1450_2.png) [@johnharper0602](https://discourse.sst.dev/u/johnharper0602)\
**Post date:** [June 16, 2023, 11:53am UTC](https://discourse.sst.dev/t/same-custom-domain-for-multiple-crud-apis-tables/2823/1 "2023-06-16T11:53:38Z")

</div>

I’m new to SST (and JavaScript) and have been getting by scratching around on the web.  
I am trying to create a repo where I create (IaC) all of my AWS DynamoDB Tables and their associated CRUD API’s.  
Each Table has it’s own stack that creates the table and sets up the APIGatewayV1 API’s and sets the handlers. I have set the API to use custom domain. We have a domain already set up in Route53 for our web pages “[mydomain.co.uk](http://mydomain.co.uk)” and I set the custom domain to be that prefixed with “api”.  
This has ll been working fine in my first table (DBMktPref).  
Now I add a second table which is in separate stack but mostly a straight copy of the above table and I get an error:

CREATE\_FAILED | AWS::ApiGateway::DomainName | ApiSftpRecLogDomainName2F9FFEC4 | [api.mydomainname.co.uk](http://api.mydomainname.co.uk) already exists in stack arn:aws:cloudformation:eu-west-1:636076030592:stack/nonprod-b2bgifting-gate-database-DbMktPref/aa5db410-0534-11ee-abc8-06b416a60bfb

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/serverless_stack/original/2X/e/e70dc0b016f9e9beeeab053ce2a42242070e7999.png)

Can anyone help me with what code I need to pull in an existing custom domain please?

Thanks  
John
