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
Do not validate the existence of the domain mapping as it could be the 1st deploy. Or at least let us decide if we want to ignore/skip the error without making the process exit with a non-zero exit code.
Additional context/Screenshots
We deleted the CloudFormation stack from our AWS account to re-deploy the project. It was needed because we had removed the split-stack plugin that was causing other errors and we no longer needed it since AWS bumped the limit for the number of resources in a template from 200 to 500.
After that, it was like deploying the project for the 1st time in the AWS account. There was no API mapping in the API gateway. This made the validation (with --noDeploy flag) ran by our pipeline to fail. After we removed this step, the deploy worked flawlessly.
Here's a screenshot showing the problem:
The text was updated successfully, but these errors were encountered:
I believe this issue became irrelevant in Serverless >= 2.36 since they removed support for --noDeploy.
The serverless package command does pretty much the same without calling any API from AWS. It generates a local package to be deployed by serverless deploy. The package contains all generated zips and the CloudFormation template.
Haven't tested the plugin along with serverless package though.
Community Note
Bug Report
Error Description
Executing
serverless deploy --noDeploy
causes an error "Unable to setup base domain mappings for domain" for a new deploy.From the documentation:
Command Run
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
Do not validate the existence of the domain mapping as it could be the 1st deploy. Or at least let us decide if we want to ignore/skip the error without making the process exit with a non-zero exit code.
Additional context/Screenshots
We deleted the CloudFormation stack from our AWS account to re-deploy the project. It was needed because we had removed the split-stack plugin that was causing other errors and we no longer needed it since AWS bumped the limit for the number of resources in a template from 200 to 500.
After that, it was like deploying the project for the 1st time in the AWS account. There was no API mapping in the API gateway. This made the validation (with --noDeploy flag) ran by our pipeline to fail. After we removed this step, the deploy worked flawlessly.
Here's a screenshot showing the problem:
The text was updated successfully, but these errors were encountered: