maciejtreder / serverless-apigw-binary

Serverless plugin for binary files support in AWS Gateway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Externalized environment configuration support

kennyw12 opened this issue · comments

Serverless blows up with Serverless plugin "serverless-apigw-binary" not found. Make sure it's installed and listed in the "plugins" section of your serverless config file. when I try to use externalized env files.

custom: ${file(environment/${self:provider.stage}.json)}

It seems like this line is the culprit. BinarySupport is initialized trying to read from the yml but serverless has not populated the custom key yet. Moving this inline to its usage solves this issue.

Hello @kennyw12 Please verify your bugfix in the latest release (0.4.3).

Thanks in advance!

@kennyw12 You're right! Check out now (0.4.4)

Thank you for your input 👍