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

Use AWS_REGION environment variable when available #2

Closed
jwarchol opened this issue Nov 6, 2020 · 1 comment
Closed

Use AWS_REGION environment variable when available #2

jwarchol opened this issue Nov 6, 2020 · 1 comment

Comments

@jwarchol
Copy link

jwarchol commented Nov 6, 2020

Are you open to using the typical AWS_REGION environment variable for the selection of region before falling back to the hard-coded "us-west-2" value?

@jwerre
Copy link
Owner

jwerre commented Nov 7, 2020

Is there any reason you can't set AWS_REGION as the region? Something like:

const config = require('secrets').secretSync({
	region: process.env.AWS_REGION || 'us-east-1',
	id: '/my-co/apis/',
});

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