This seems to work fine when deploying the whole endpoint, but if using the -f function.js flag it completely bypasses the plugin.
The following works:
sls deploy --stage dev --env development --profile default
The following doesn't:
sls deploy --stage dev --env development --profile default -f myfunction.js
What's more, the second case removes all the fields that were originally injected by the plugin and aren't restored if deployed again using the first command. The only way to "refresh" them is to add another SSM field and run the first command again.
Is this expected behavior?
This seems to work fine when deploying the whole endpoint, but if using the
-f function.jsflag it completely bypasses the plugin.The following works:
sls deploy --stage dev --env development --profile defaultThe following doesn't:
sls deploy --stage dev --env development --profile default -f myfunction.jsWhat's more, the second case removes all the fields that were originally injected by the plugin and aren't restored if deployed again using the first command. The only way to "refresh" them is to add another SSM field and run the first command again.
Is this expected behavior?