nicka/serverless-plugin-diff

Can't use provider region from serverless.yml

jhonathanvini opened this issue · 0 comments

|| (this.serverless.service.defaults && this.serverless.service.defaults.region)

Hello, thanks for a nice plugin :)

I am trying to automate some of our tasks, but for that, I'd need the diff to run without the need to pass the --region myregion in the command.

While looking at the code, I noticed it uses this.serverless.service.defaults.region, but I can't find a way to set it, how do I set this default region?

Or in this case, should the line be changed to this.serverless.service.provider.region, or maybe add the provider region to the possible value origins?