but it is still try to resolve MyEnvVar even when calling serverless deploy. I would like the plugin to work only for local invocations like serverless invoke local or serverless offline. In all other cases I need the real thing with AWS CloudFormation variables resolver.
Is it possible to disable this plugin when calling
serverless package
orserverless deploy
?Tried with
but it is still try to resolve
MyEnvVar
even when callingserverless deploy
. I would like the plugin to work only for local invocations likeserverless invoke local
orserverless offline
. In all other cases I need the real thing with AWS CloudFormation variables resolver.