sls remove
deletes BasePathMapping of a serverless stage different from the one specified in config
#251
Labels
sls remove
deletes BasePathMapping of a serverless stage different from the one specified in config
#251
Community Note
Bug Report
Running sls remove on one serverless stage seems to affect the BasePathMappings of another stage even if
stage
is specified in the customDomain config.Example:
sls remove --stage <xyz>
where != prod also affects/changes the BasePathMapping on--stage prod
Command Run
sls remove --stage staging
Domain Manager Configuration
Outcome
Cloudtrail log during
sls remove --stage staging
run, suggestsDeleteBasePathMapping
action was performed bysls remove
, unfortunately didn't get a hold of the output and am unable to run the command again to avoid potential production issues.Versions
Possible (Temporary) Solution
Running
sls deploy --stage staging
again fixed the issue (re generated the missing BasePathMapping for --stage prod). However, this is not an ideal solution because ideally deploy/remove on a nonprod
stage/stack, should not affectprod
stack.The text was updated successfully, but these errors were encountered: