serverless-plugin-diff icon indicating copy to clipboard operation
serverless-plugin-diff copied to clipboard

Can't use provider region from serverless.yml

Open jhonathanvini opened this issue 2 years ago • 0 comments

https://github.com/nicka/serverless-plugin-diff/blob/70ee590cc1b9febae75f1b3ed22f1fe0eb25b3ad/lib/index.js#L28

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?

jhonathanvini avatar Jul 07 '22 08:07 jhonathanvini