export async function main()

in cdk/event-forwarder/index.ts [19:34]


export async function main(event: CloudformationEvent | AutoscalingEvent) {
	const { stage } = getConfig();

	try {
		const hydrated: HydratedEvent = {
			...event,
			cloudformationStackName: await getCloudformationStackName(event, stage),
		};
		console.log(JSON.stringify(hydrated));
	} catch (err) {
		if (err instanceof Error) {
			console.error(err.message);
		}
		console.log(JSON.stringify(event));
	}
}