k1LoW / serverless-s3-sync

A plugin to sync local directories and S3 prefixes for Serverless Framework :zap:
183 stars 70 forks source link

Use Serverless App AWS credentials #66

Open Mortalife opened 4 years ago

Mortalife commented 4 years ago

It would appear that the sync is done via local user AWS credentials, whereas the rest of the serverless deploy/remove chain uses the credentials I have stored against my account in the serverless dashboard.

Is there something I'm missing that prevents s3sync using these credentials?

Mortalife commented 4 years ago

Resolved the issue by modifying this line: https://github.com/k1LoW/serverless-s3-sync/blob/master/resolveStackOutput.js#L6

I don't have a credentials object on the getCredentials() call.

Your Environment Information --------------------------- Operating System: win32 Node Version: 12.16.1 Framework Version: 1.71.1 (standalone) Plugin Version: 3.6.12 SDK Version: 2.3.0 Components Version: 2.30.10