Skip to content
This repository has been archived by the owner on May 23, 2021. It is now read-only.

tabetalt/infra-config

Repository files navigation

Tabetalt Infra Config

This is an repository for internal configuration classes used with @tabetalt/pulumix.

For Tabetalt-developers

Changes here are deployed to all microservices. It should be generic and will be public. Secrets are only stored in Vault.

For others

This holds an example of Config class that can be used with resources at @tabetalt/pulumix.

One of the use-cases are simple getting configuration.

import { Config } from '@tabetalt/devops-config';
const config = new Config;
export const service = new Service('hello', {
  domain: config.get('domain'),
});

or you can utilize it as base configuration class. Every function that requires something configurable, will use this class instead.

import { Config } from '@tabetalt/devops-config';
const config = new Config;
export const service = new Service('hello', {
  name: 'hello',
}, { config });

If service needs, ex. primaryDomain, it will get that from our Config class.