Ghost-storage-adapter-s3 Could not load credentials from any providers

Hi all,

I’m trying to get Ghost-storage-adapter-s3 working with Ghost v4 but receiving this error:

CredentialsError: Could not load credentials from any providers
at JSON.parse ()
at /var/www/philipbenton.com/public/versions/4.2.0/node_modules/aws-sdk/lib/metadata_service.js:86:38
at IncomingMessage. (/var/www/philipbenton.com/public/versions/4.2.0/node_modules/aws-sdk/lib/metadata_service.js:61:43)
at IncomingMessage.emit (events.js:327:22)
at IncomingMessage.EventEmitter.emit (domain.js:467:12)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)

Strange thing is I know it can work as I had it working a few days ago. I had to destroy and start up a new Digital Ocean Droplet and now I can’t get this working.

Any ideas?

Thought I’d provide an update on this to anyone interested…

I had stupidly misspelled “secretAccessKey” as “secrect”. It’s only taken me 48 hours of pulling my hair out to find the error!