Updates to secrets manager; added foundation for e2e testing; began initialization for pipeline builds

This commit is contained in:
2023-04-29 00:58:15 -04:00
parent 29d36a57d6
commit bdfab94810
22 changed files with 9839 additions and 414 deletions

View File

@@ -0,0 +1,22 @@
import { CommonConfig } from "./common-config.interface";
import { configValidator } from './config.validator';
export default (): CommonConfig => {
const { error, value } = configValidator.validate({
AWS_ACCOUNT_ID: process.env.AWS_ACCOUNT_ID ?? '000000000000',
AWS_REGION: process.env.AWS_REGION ?? 'us-east-1',
DB_DATABASE: process.env.PERSISTANCE ?? ':memory:',
DB_LOGGING: process.env.DEBUG ? true : false,
DB_SYNCHRONIZE: true,
HOST: process.env.HOST ?? 'localhost',
PROTO: process.env.PROTOCOL ?? 'http',
PORT: process.env.PORT as any ?? 4566,
}, { abortEarly: false });
if (error) {
throw error;
}
return value;
}