g2-ops-config
Goal
Centralized support for Cloud Config for Copart
API
- Standard API
import fetchConfigurations from 'g2-ops-config'
fetchConfigurations(APPLICATION, [PROFILE1, PROFILE2]).then((response) => console.log(response))
{
[PROFILE1]: {},
[PROFILE2]: {}
}
- We will inject configurations into process when configuration begins with
ENV-
// application.yaml
ENV-SESSION_ID='secret'
import fetchConfigurations from 'g2-ops-config'
fetchConfigurations(APPLICATION, [PROFILE1, PROFILE2]).then((response) => console.log(response))
{
[PROFILE1]: {},
[PROFILE2]: {}
}
console.log(process.env.SESSION_ID)
ISSUES
Please, report issues at: g2-ops-config