Custom domain and APIG

What is the correct way to create custom API mapping? It looks like if I map the domain in AWS UI, sls remove will fail as it’s not able to remove APIG resource. I probably should define the custom domain in serverless.yml but how?

DELETE_FAILED AWS::ApiGateway::RestApi ApiGatewayRestApi Deleting RestApi xxx failed. Please remove all base path mappings related to the RestApi in your domains: xxx

1 Like

@petteri custom APIG domain names are something that isn’t natively supported in the framework yet, but an important feature going forward.

I wrote a custom script that automates custom domain setup with APIG, however it won’t help you with your deletion issue.