nest-storage icon indicating copy to clipboard operation
nest-storage copied to clipboard

Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1

Open sheyDev opened this issue 2 years ago • 1 comments

Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1 app | Error: connect ECONNREFUSED 169.254.169.254:80 app | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16) app | at TCPConnectWrap.callbackTrampoline (internal/async_hooks.js:130:17)

Storage module is registered async based on the documentation using the nest js config module.

StorageModule.registerAsync({ useFactory: (configService: ConfigService) => configService.get('filesystem'), inject: [ConfigService] }),

The credentials have been tested on a separate application to make sure they are accurate. running (configService.get('filesystem') gives the correct results.

Anyone got an idea why this is not working for nest-storage package? Any help is greatly appreciated.

sheyDev avatar Mar 02 '22 06:03 sheyDev

Anyone got an idea why this is not working for nest-storage package?

Version 0.0.3 works fine

ragmon avatar Dec 07 '22 20:12 ragmon