maciejtreder / serverless-apigw-binary

Serverless plugin for binary files support in AWS Gateway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not support --profile option

thinkski opened this issue · comments

The plugin does not support invoking deploy with --profile option. slss deploy --profile profileName throws:

...
/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:31
            throw err;
            ^

Error: CredentialsError: Missing credentials in config
    at ClientRequest.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/http/node.js:83:34)
...

AWS_PROFILE=profileName slss deploy works without issue.