@venturekit/infra API
Functions
Section titled “Functions”defineVenture(definition)
Section titled “defineVenture(definition)”Creates a VentureKit application. This is the main entry point used in vk.config.ts.
function defineVenture(definition: VentureDefinition): { _routesDir: string _infrastructure?: VentureIntent _definition: VentureDefinition app(input: { stage: string }): VentureAppConfig}Returns a metadata object that CLI tools read:
_routesDir— used byvk devto discover routes and byvk deployto configure API Gateway_infrastructure— used to generate Docker Compose services (dev) or CDK constructs (deploy)_definition— the full definition for config resolutionapp()— returns project name and region for the given stage
getResolvedConfig(base, security, envInput)
Section titled “getResolvedConfig(base, security, envInput)”Returns the fully resolved ResolvedConfig for the current environment (determined by VENTURE_STAGE).
function getResolvedConfig( base: BaseConfig, security: SecurityConfig, envInput: EnvConfigInput): ResolvedConfigVentureDefinition
Section titled “VentureDefinition”interface VentureDefinition { base: BaseConfig security: SecurityConfig envs: { dev?: EnvConfigInput stage?: EnvConfigInput prod?: EnvConfigInput } routesDir: string infrastructure?: VentureIntent}VentureAppConfig
Section titled “VentureAppConfig”interface VentureAppConfig { name: string home: 'aws' providers: { aws: { region: string } }}