@fntio/infra-client
Version:
Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.
18 lines (13 loc) • 329 B
JavaScript
const aws = require('./aws');
const azure = require('./azure');
const providers = {
aws,
azure
};
module.exports = function getProvider(options) {
const { provider = 'aws' } = options;
if (provider in providers) {
return providers[provider](options);
}
throw new Error(`Unsupported provider ${provider}`);
};