You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Bug Report
Error Description
I want to have multiple api mappings on the same domain name pointing to the same API stage. Although no errors are shown, only the last of the 2 entries is actually applied and not the first one. If I switch around the 2 configurations in the array, the last one again is chosen.
Command Run
'sls deploy'
Console Output
Domain Name: test.mydomain.com
Target Domain: d-5ivgybpoiu.execute-api.eu-central-1.amazonaws.com
Hosted Zone Id: Z1U9ULNL0V5BC7
Domain Name: sandbox.api.bittiq.cloud
Target Domain: d-5ivgybpoiu.execute-api.eu-central-1.amazonaws.com
Hosted Zone Id: Z1U9ULNL0V5BC7
Domain Manager Configuration
Replace this with your own serverless.yml file (anonymized, of course) to help us better resolve your issue.
I ran into exactly the same issue. Although I fixed it temporarily on a local branch by changing the logic in setupBasePathMappings, I don't think it is the right solution to the problem, because tasks like 'create_domain' will try to create the domain multiple times which obviously results in errors.
Instead I propose that basePath, or basePaths for that matter, accepts a list of mappings.
Community Note
Bug Report
Error Description
I want to have multiple api mappings on the same domain name pointing to the same API stage. Although no errors are shown, only the last of the 2 entries is actually applied and not the first one. If I switch around the 2 configurations in the array, the last one again is chosen.
Command Run
'sls deploy'
Console Output
Domain Manager Configuration
Replace this with your own
serverless.yml
file (anonymized, of course) to help us better resolve your issue.Versions
Possible Solution
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
The text was updated successfully, but these errors were encountered: