Skip to content

Use ENV with precedence over YAML configuration #39

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

Merged
merged 7 commits into from
Nov 11, 2024
Merged

Use ENV with precedence over YAML configuration #39

merged 7 commits into from
Nov 11, 2024

Conversation

mullermp
Copy link
Contributor

@mullermp mullermp commented Nov 6, 2024

Related to discussions in aws/aws-sdk-rails#139

Soft breaking change. This change makes ENV variables take precedence over YAML files, similar to how it works in the Ruby SDK. This is necessary so that the config file path can be set in ENV, then that config file, if present, would be read and used. The values in the config file would not take precedence over ENV.

@mullermp
Copy link
Contributor Author

mullermp commented Nov 6, 2024

@thomaswitt

@mullermp
Copy link
Contributor Author

mullermp commented Nov 6, 2024

Investigating jruby... I'm not sure if it's related.

@mullermp
Copy link
Contributor Author

mullermp commented Nov 6, 2024

The issue is with the json gem. @thomaswitt feel free to try your code with this github/branch and the aws-sdk-rails PR.

@mullermp mullermp requested a review from alextwoods November 10, 2024 23:36
Copy link
Contributor

@jterapin jterapin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README.md is getting quite long, could use a table of contents.

@mullermp mullermp merged commit 2ec792d into main Nov 11, 2024
7 checks passed
@mullermp mullermp deleted the env-yaml branch November 11, 2024 17:08
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

Successfully merging this pull request may close these issues.

2 participants