Hi friends, I hope you understand me, as I wrote by google translator
each sub domain belongs to a client.
example: client1.videoroom.cloud client2.videoroom.cloud
client1 uses database 1
client2 uses database 2
how do I “summon” a distinct lamba for each subdomain?
because in my tests, client1 and client2 , it accesses the same “server”, I would like a new server to be generated for each new domain
it’s possible?
service: ERP-backend
plugins:
- serverless-domain-manager
custom:
customDomain:
rest:
domainName: '*.videoroom.cloud'
certificateName: '*.videoroom.cloud'
stage: api
basePath: ''
createRoute53Record: true
securityPolicy: tls_1_2
provider:
name: aws
runtime: nodejs14.x
stage: api
region: sa-east-1
memorySize: 256
logRetentionInDays: 0
functions:
app:
timeout: 60
handler: app.handler
events:
- http:
path: /
method: ANY
cors: false
- http:
path: /{proxy+}
method: ANY