Hey everyone, are there any examples or best pract...
# help
p
Hey everyone, are there any examples or best practices for building large HTTP-Apis using a single domain? At the moment I have one stack with multiple
ApiGatewayV1Api
apis that are all using the same imported domain (using
DomainName.fromDomainNameAttributes
) and have different base paths. But I am approaching the 500 resources limit and when I tried to split the stack up into multiple stacks (e.g. one stack per
ApiGatewayV1Api
) the domain is always only working for one the stacks (deploy works but lambdas cannot be reached). So what are the best practices to structure a case like this and are there any changes to sharing domains in v1 (I am still using 0.69)?
t
you can have one ApiStack which creates the api gateway. then you can pass this to other stacks to add routes to, that way you won't hit the limit while still only having a singular apig
p
Thanks a lot. That clears things up.