Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sheyDev opened this issue Mar 2, 2022 · 1 comment

Comments

@sheyDev
Copy link

sheyDev commented Mar 2, 2022

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.

@ragmon
Copy link

ragmon commented Dec 7, 2022

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

Version 0.0.3 works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants