When creating an S3Client with the aws-sdk the initialisation failes for UA_APP_ID_ENV_NAME in @smithy/node-config-provider
Expected Behavior
A successfully initialized S3Client using the variables available in the process.env
Current Behavior
Exception has occurred: CredentialsProviderError: Cannot load config from environment variables with getter: (env) => env[exports.UA_APP_ID_ENV_NAME]
at /node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js:14:15
at /node_modules/@smithy/property-provider/dist-cjs/chain.js:12:39
at coalesceProvider (/node_modules/@smithy/property-provider/dist-cjs/memoize.js:11:23)
at /node_modules/@smithy/property-provider/dist-cjs/memoize.js:26:34
at defaultUserAgent (/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js:34:7)
at getRuntimeConfig (/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js:39:57)
at new S3Client (/node_modules/@aws-sdk/client-s3/dist-cjs/S3Client.js:24:64)
Describe the bug
When creating an S3Client with the aws-sdk the initialisation failes for UA_APP_ID_ENV_NAME in
@smithy/node-config-provider
Expected Behavior
A successfully initialized S3Client using the variables available in the
process.env
Current Behavior
Reproduction Steps
.env
.index.js
Possible Solution
No response
Additional Information/Context
No response
SDK version used
3.470.0
Environment details (OS name and version, etc.)
Node v18.17.0