sparse-intern-71089
08/31/2023, 5:20 PMdry-pilot-49577
08/31/2023, 6:08 PM// eslint-disable-next-line import/no-unassigned-import
import "./pre.js";
export * from "./outputs.js";
The pre-hook lets us do some environment checks, and then outputs.js (a TS file but we use ESM) works backwards from the outputs. Pulumi takes care of all the dependencies in the graph for us.
import { dataApi } from "./objects/databases/mongo.js";
// common information about the build (informative)
export { SERVICE_PREFIX } from "./common.js";
// lambda outputs assist with pushing new code or running a service in development
export {
LAMBDA_GRAPHQL_ARN,
LAMBDA_GRAPHQL_REGION,
LAMBDA_GRAPHQL_S3_BUCKET,
LAMBDA_GRAPHQL_S3_KEY,
LAMBDA_GRAPHQL_CONFIG,
} from "./objects/lambdas/graphql.js";
// ... other lambdas removed for brevity
// api gateway w/ public URL
export { API_DOMAIN_NAME } from "./objects/gateways/api.js";
// Usable in a staging environment, undef in production environments
export { MONGO_DIRECT_URL } from "./objects/databases/mongo.js";
agreeable-librarian-7407
08/31/2023, 7:07 PMlittle-cartoon-10569
08/31/2023, 11:07 PM