AWS related environment values get replaced
See original GitHub issueI have a .env
file, with custom values for
AWS_ACCESS_KEY_ID = "somekey"
AWS_SECRET_ACCESS_KEY = "somevalue"
These values get replaced by the default values defined on https://github.com/freshollie/jest-dynalite/blob/master/src/setup.ts, no matter what I do.
Only when I have removed the preset: "jest-dynalite"
preset from the jest.config
file, my values remain as defined.
Do you know could be going wrong? thanks
PS: I would suggest to just remove those default values.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Environment variables to configure the AWS CLI
Environment variables provide another way to specify configuration options and credentials, and can be useful for scripting or temporarily setting a named ...
Read more >Variables - Serverless Framework
Variables. Variables allow users to dynamically replace config values in serverless.yml config. They are especially useful when providing secrets for your ...
Read more >Environment Variables From Secret Manager Not Correctly ...
If I run this locally in IntelliJ using the AWS Toolkit Plugin the environment variables are not replaced and the code fails.
Read more >Configuration — Boto3 Docs 1.26.37 documentation
aws /config file when looking for configuration values. You can change the location of this file by setting the AWS_CONFIG_FILE environment variable. This...
Read more >How do you pass custom environment variable on Amazon ...
Later you can go to the AWS admin panel (Environment Details -> Edit Configuration -> Container) and update the values there. In my...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah. Looks like
jest-dynalite
is setting these variables, anddotenv
won’t overwrite variable which are already set (I didn’t know this): https://github.com/motdotla/dotenv/blob/master/lib/main.js#L104didnt know either, thanks for sharing 😃