@webiny/project-aws 6.6.0-alpha.3 → 6.6.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,5 @@
1
1
  import { AdminAfterDeploy, GetApp, UiService } from "@webiny/project/abstractions/index.js";
2
2
  import fs from "fs";
3
- import { uploadFolderToS3 } from "../../pulumi/index.js";
4
3
  import { AdminStackOutputService } from "../../abstractions/index.js";
5
4
  class UploadAdminAppToS3Impl {
6
5
  constructor(ui, getApp, adminStackOutputService){
@@ -18,6 +17,7 @@ class UploadAdminAppToS3Impl {
18
17
  const start = new Date().getTime();
19
18
  const appOutput = await this.adminStackOutputService.execute();
20
19
  if (!appOutput) throw new Error("Missing app stack output.");
20
+ const { uploadFolderToS3 } = await import("../../pulumi/utils/uploadFolderToS3.js");
21
21
  await uploadFolderToS3({
22
22
  path: buildFolderPath,
23
23
  bucket: appOutput.appStorage,
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/ProjectAws/UploadAdminAppToS3.js","sources":["../../../src/extensions/ProjectAws/UploadAdminAppToS3.ts"],"sourcesContent":["import { AdminAfterDeploy, GetApp, UiService } from \"@webiny/project/abstractions/index.js\";\nimport fs from \"fs\";\nimport { uploadFolderToS3 } from \"~/pulumi/index.js\";\nimport { type IDefaultStackOutput } from \"~/pulumi/types.js\";\nimport { AdminStackOutputService } from \"~/abstractions/index.js\";\n\nclass UploadAdminAppToS3Impl implements AdminAfterDeploy.Interface {\n constructor(\n private ui: UiService.Interface,\n private getApp: GetApp.Interface,\n private adminStackOutputService: AdminStackOutputService.Interface\n ) {}\n\n async execute(params: AdminAfterDeploy.Params) {\n // No need to upload the app if we're doing a preview.\n if (params.preview) {\n return;\n }\n\n const ui = this.ui;\n ui.info(\"Uploading React application...\");\n\n const app = this.getApp.execute(params.app);\n\n const buildFolderPath = app.paths.workspaceFolder.join(\"build\").toString();\n if (!fs.existsSync(buildFolderPath)) {\n throw new Error(\"Cannot continue, build folder not found.\");\n }\n\n const start = new Date().getTime();\n const appOutput = await this.adminStackOutputService.execute<IDefaultStackOutput>();\n if (!appOutput) {\n throw new Error(\"Missing app stack output.\");\n }\n\n await uploadFolderToS3({\n path: buildFolderPath,\n bucket: appOutput.appStorage,\n acl: \"private\",\n cacheControl: [\n {\n pattern: /index\\.html/,\n value: \"no-cache, no-store, must-revalidate\"\n },\n {\n pattern: /robots\\.txt/,\n value: \"no-cache, no-store, must-revalidate\"\n },\n {\n pattern: /.*/,\n value: \"max-age=31536000\"\n }\n ],\n onFileUploadSuccess: ({ paths }) => {\n ui.success(paths.relative);\n },\n onFileUploadError: ({ paths, error }) => {\n ui.error(\"Failed to upload %s\", paths.relative);\n ui.text(error.message);\n },\n onFileUploadSkip: ({ paths }) => {\n ui.info(`Skipping %s, already exists.`, paths.relative);\n }\n });\n\n const duration = (new Date().getTime() - start) / 1000;\n\n ui.success(`React application successfully uploaded in %ss.`, duration);\n }\n}\n\nexport const UploadAdminAppToS3 = AdminAfterDeploy.createImplementation({\n implementation: UploadAdminAppToS3Impl,\n dependencies: [UiService, GetApp, AdminStackOutputService]\n});\n"],"names":["UploadAdminAppToS3Impl","ui","getApp","adminStackOutputService","params","app","buildFolderPath","fs","Error","start","Date","appOutput","uploadFolderToS3","paths","error","duration","UploadAdminAppToS3","AdminAfterDeploy","UiService","GetApp","AdminStackOutputService"],"mappings":";;;;AAMA,MAAMA;IACF,YACYC,EAAuB,EACvBC,MAAwB,EACxBC,uBAA0D,CACpE;aAHUF,EAAE,GAAFA;aACAC,MAAM,GAANA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAA+B,EAAE;QAE3C,IAAIA,OAAO,OAAO,EACd;QAGJ,MAAMH,KAAK,IAAI,CAAC,EAAE;QAClBA,GAAG,IAAI,CAAC;QAER,MAAMI,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAE1C,MAAME,kBAAkBD,IAAI,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,QAAQ;QACxE,IAAI,CAACE,GAAG,UAAU,CAACD,kBACf,MAAM,IAAIE,MAAM;QAGpB,MAAMC,QAAQ,IAAIC,OAAO,OAAO;QAChC,MAAMC,YAAY,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO;QAC5D,IAAI,CAACA,WACD,MAAM,IAAIH,MAAM;QAGpB,MAAMI,iBAAiB;YACnB,MAAMN;YACN,QAAQK,UAAU,UAAU;YAC5B,KAAK;YACL,cAAc;gBACV;oBACI,SAAS;oBACT,OAAO;gBACX;gBACA;oBACI,SAAS;oBACT,OAAO;gBACX;gBACA;oBACI,SAAS;oBACT,OAAO;gBACX;aACH;YACD,qBAAqB,CAAC,EAAEE,KAAK,EAAE;gBAC3BZ,GAAG,OAAO,CAACY,MAAM,QAAQ;YAC7B;YACA,mBAAmB,CAAC,EAAEA,KAAK,EAAEC,KAAK,EAAE;gBAChCb,GAAG,KAAK,CAAC,uBAAuBY,MAAM,QAAQ;gBAC9CZ,GAAG,IAAI,CAACa,MAAM,OAAO;YACzB;YACA,kBAAkB,CAAC,EAAED,KAAK,EAAE;gBACxBZ,GAAG,IAAI,CAAC,gCAAgCY,MAAM,QAAQ;YAC1D;QACJ;QAEA,MAAME,WAAY,KAAIL,OAAO,OAAO,KAAKD,KAAI,IAAK;QAElDR,GAAG,OAAO,CAAC,mDAAmDc;IAClE;AACJ;AAEO,MAAMC,qBAAqBC,iBAAiB,oBAAoB,CAAC;IACpE,gBAAgBjB;IAChB,cAAc;QAACkB;QAAWC;QAAQC;KAAwB;AAC9D"}
1
+ {"version":3,"file":"extensions/ProjectAws/UploadAdminAppToS3.js","sources":["../../../src/extensions/ProjectAws/UploadAdminAppToS3.ts"],"sourcesContent":["import { AdminAfterDeploy, GetApp, UiService } from \"@webiny/project/abstractions/index.js\";\nimport fs from \"fs\";\nimport { type IDefaultStackOutput } from \"~/pulumi/types.js\";\nimport { AdminStackOutputService } from \"~/abstractions/index.js\";\n\nclass UploadAdminAppToS3Impl implements AdminAfterDeploy.Interface {\n constructor(\n private ui: UiService.Interface,\n private getApp: GetApp.Interface,\n private adminStackOutputService: AdminStackOutputService.Interface\n ) {}\n\n async execute(params: AdminAfterDeploy.Params) {\n // No need to upload the app if we're doing a preview.\n if (params.preview) {\n return;\n }\n\n const ui = this.ui;\n ui.info(\"Uploading React application...\");\n\n const app = this.getApp.execute(params.app);\n\n const buildFolderPath = app.paths.workspaceFolder.join(\"build\").toString();\n if (!fs.existsSync(buildFolderPath)) {\n throw new Error(\"Cannot continue, build folder not found.\");\n }\n\n const start = new Date().getTime();\n const appOutput = await this.adminStackOutputService.execute<IDefaultStackOutput>();\n if (!appOutput) {\n throw new Error(\"Missing app stack output.\");\n }\n\n // Imported here rather than at the top of the file. Every CLI command imports this hook when\n // the project SDK registers its extensions, even `webiny --help`, and a top-level import used\n // to come through the `~/pulumi` barrel, which loads all of Pulumi and the AWS SDK: about\n // 2,700 modules. The upload is the only thing that needs it, so the upload pays for it.\n const { uploadFolderToS3 } = await import(\"~/pulumi/utils/uploadFolderToS3.js\");\n\n await uploadFolderToS3({\n path: buildFolderPath,\n bucket: appOutput.appStorage,\n acl: \"private\",\n cacheControl: [\n {\n pattern: /index\\.html/,\n value: \"no-cache, no-store, must-revalidate\"\n },\n {\n pattern: /robots\\.txt/,\n value: \"no-cache, no-store, must-revalidate\"\n },\n {\n pattern: /.*/,\n value: \"max-age=31536000\"\n }\n ],\n onFileUploadSuccess: ({ paths }) => {\n ui.success(paths.relative);\n },\n onFileUploadError: ({ paths, error }) => {\n ui.error(\"Failed to upload %s\", paths.relative);\n ui.text(error.message);\n },\n onFileUploadSkip: ({ paths }) => {\n ui.info(`Skipping %s, already exists.`, paths.relative);\n }\n });\n\n const duration = (new Date().getTime() - start) / 1000;\n\n ui.success(`React application successfully uploaded in %ss.`, duration);\n }\n}\n\nexport const UploadAdminAppToS3 = AdminAfterDeploy.createImplementation({\n implementation: UploadAdminAppToS3Impl,\n dependencies: [UiService, GetApp, AdminStackOutputService]\n});\n"],"names":["UploadAdminAppToS3Impl","ui","getApp","adminStackOutputService","params","app","buildFolderPath","fs","Error","start","Date","appOutput","uploadFolderToS3","paths","error","duration","UploadAdminAppToS3","AdminAfterDeploy","UiService","GetApp","AdminStackOutputService"],"mappings":";;;AAKA,MAAMA;IACF,YACYC,EAAuB,EACvBC,MAAwB,EACxBC,uBAA0D,CACpE;aAHUF,EAAE,GAAFA;aACAC,MAAM,GAANA;aACAC,uBAAuB,GAAvBA;IACT;IAEH,MAAM,QAAQC,MAA+B,EAAE;QAE3C,IAAIA,OAAO,OAAO,EACd;QAGJ,MAAMH,KAAK,IAAI,CAAC,EAAE;QAClBA,GAAG,IAAI,CAAC;QAER,MAAMI,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAACD,OAAO,GAAG;QAE1C,MAAME,kBAAkBD,IAAI,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,QAAQ;QACxE,IAAI,CAACE,GAAG,UAAU,CAACD,kBACf,MAAM,IAAIE,MAAM;QAGpB,MAAMC,QAAQ,IAAIC,OAAO,OAAO;QAChC,MAAMC,YAAY,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO;QAC5D,IAAI,CAACA,WACD,MAAM,IAAIH,MAAM;QAOpB,MAAM,EAAEI,gBAAgB,EAAE,GAAG,MAAM,MAAM,CAAC;QAE1C,MAAMA,iBAAiB;YACnB,MAAMN;YACN,QAAQK,UAAU,UAAU;YAC5B,KAAK;YACL,cAAc;gBACV;oBACI,SAAS;oBACT,OAAO;gBACX;gBACA;oBACI,SAAS;oBACT,OAAO;gBACX;gBACA;oBACI,SAAS;oBACT,OAAO;gBACX;aACH;YACD,qBAAqB,CAAC,EAAEE,KAAK,EAAE;gBAC3BZ,GAAG,OAAO,CAACY,MAAM,QAAQ;YAC7B;YACA,mBAAmB,CAAC,EAAEA,KAAK,EAAEC,KAAK,EAAE;gBAChCb,GAAG,KAAK,CAAC,uBAAuBY,MAAM,QAAQ;gBAC9CZ,GAAG,IAAI,CAACa,MAAM,OAAO;YACzB;YACA,kBAAkB,CAAC,EAAED,KAAK,EAAE;gBACxBZ,GAAG,IAAI,CAAC,gCAAgCY,MAAM,QAAQ;YAC1D;QACJ;QAEA,MAAME,WAAY,KAAIL,OAAO,OAAO,KAAKD,KAAI,IAAK;QAElDR,GAAG,OAAO,CAAC,mDAAmDc;IAClE;AACJ;AAEO,MAAMC,qBAAqBC,iBAAiB,oBAAoB,CAAC;IACpE,gBAAgBjB;IAChB,cAAc;QAACkB;QAAWC;QAAQC;KAAwB;AAC9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/ProjectAws.js","sources":["../../src/extensions/ProjectAws.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeWatch,\n AfterDeploy,\n ApiAfterDeploy,\n ApiBeforeDeploy,\n ApiBeforeWatch,\n BeforeDeploy,\n CoreBeforeDeploy,\n DatabaseSetup,\n ExtensionDefinitions,\n Project,\n ProjectImplementation\n} from \"@webiny/project/extensions/index.js\";\nimport { createPathResolver } from \"@webiny/project\";\nimport { CliCommand } from \"@webiny/cli-core/extensions/index.js\";\nimport { CorePulumi } from \"~/pulumi/extensions/CorePulumi.js\";\n\nconst p = createPathResolver(import.meta.dirname);\n\nexport const ProjectAws = () => {\n return (\n <>\n <Project />\n\n {/* Database Setup - default to DynamoDB only */}\n <DatabaseSetup setupName=\"ddb\" />\n\n {/* Set database setup output value in Core stack */}\n <CorePulumi src={p(\"ProjectAws/SetDatabaseSetupOutput.js\")} />\n\n {/* Stack Output Services */}\n <ProjectImplementation src={p(\"ProjectAws/CoreStackOutputService.js\")} singleton />\n <ProjectImplementation src={p(\"ProjectAws/ApiStackOutputService.js\")} singleton />\n <ProjectImplementation src={p(\"ProjectAws/AdminStackOutputService.js\")} singleton />\n\n <ProjectImplementation src={p(\"../features/InvokeLambdaFunction.js\")} singleton />\n <ProjectImplementation src={p(\"../features/ApiGqlClient.js\")} singleton />\n\n <AdminAfterDeploy src={p(\"ProjectAws/UploadAdminAppToS3.js\")} />\n\n <ApiAfterDeploy src={p(\"ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js\")} />\n <ExtensionDefinitions src={p(\"definitions.js\")} />\n <ExtensionDefinitions src={p(\"ProjectAws/definitions.js\")} />\n\n {/* Admin env vars */}\n <AdminBeforeBuild src={p(\"ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.js\")} />\n <AdminBeforeWatch src={p(\"ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.js\")} />\n\n {/* Deployment gates — AWS-only (there is no Pulumi stack output to check off-AWS) */}\n <ApiBeforeWatch src={p(\"ProjectAws/EnsureApiDeployedBeforeWatch.js\")} />\n <AdminBeforeBuild src={p(\"ProjectAws/EnsureApiDeployedBeforeAdminBuild.js\")} />\n <AdminBeforeWatch src={p(\"ProjectAws/EnsureApiDeployedBeforeAdminWatch.js\")} />\n <ApiBeforeDeploy src={p(\"ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js\")} />\n <CoreBeforeDeploy src={p(\"ProjectAws/ValidateProductionPulumiState.js\")} />\n\n {/* Deploy-time hooks — server hosting type has no deploy command, so these are AWS-only */}\n <BeforeDeploy src={p(\"ProjectAws/EnsureTelemetryEnabledForOss.js\")} />\n <BeforeDeploy src={p(\"ProjectAws/ValidateEncryptionBeforeDeploy.js\")} />\n <AdminAfterDeploy src={p(\"ProjectAws/TelemetryNoLongerNewUser.js\")} />\n\n {/* AWS credentials check */}\n <BeforeDeploy src={p(\"ProjectAws/EnsureAwsCredentialsBeforeDeploy.js\")} />\n\n {/* Blue-green */}\n <CliCommand src={p(\"ProjectAws/BlueGreenDeployments/SetPrimaryVariantCliCommand.js\")} />\n <BeforeDeploy src={p(\"ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js\")} />\n <AfterDeploy\n src={p(\"ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js\")}\n />\n </>\n );\n};\n"],"names":["p","createPathResolver","ProjectAws","Project","DatabaseSetup","CorePulumi","ProjectImplementation","AdminAfterDeploy","ApiAfterDeploy","ExtensionDefinitions","AdminBeforeBuild","AdminBeforeWatch","ApiBeforeWatch","ApiBeforeDeploy","CoreBeforeDeploy","BeforeDeploy","CliCommand","AfterDeploy"],"mappings":";;;;;AAoBA,MAAMA,IAAIC,mBAAmB,YAAY,OAAO;AAEzC,MAAMC,aAAa,IACf,WAAP,GACI,wDACI,oBAACC,SAAOA,OAAAA,WAAAA,GAGR,oBAACC,eAAaA;QAAC,WAAU;sBAGzB,oBAACC,YAAUA;QAAC,KAAKL,EAAE;sBAGnB,oBAACM,uBAAqBA;QAAC,KAAKN,EAAE;QAAyC;sBACvE,oBAACM,uBAAqBA;QAAC,KAAKN,EAAE;QAAwC;sBACtE,oBAACM,uBAAqBA;QAAC,KAAKN,EAAE;QAA0C;sBAExE,oBAACM,uBAAqBA;QAAC,KAAKN,EAAE;QAAwC;sBACtE,oBAACM,uBAAqBA;QAAC,KAAKN,EAAE;QAAgC;sBAE9D,oBAACO,kBAAgBA;QAAC,KAAKP,EAAE;sBAEzB,oBAACQ,gBAAcA;QAAC,KAAKR,EAAE;sBACvB,oBAACS,sBAAoBA;QAAC,KAAKT,EAAE;sBAC7B,oBAACS,sBAAoBA;QAAC,KAAKT,EAAE;sBAG7B,oBAACU,kBAAgBA;QAAC,KAAKV,EAAE;sBACzB,oBAACW,kBAAgBA;QAAC,KAAKX,EAAE;sBAGzB,oBAACY,gBAAcA;QAAC,KAAKZ,EAAE;sBACvB,oBAACU,kBAAgBA;QAAC,KAAKV,EAAE;sBACzB,oBAACW,kBAAgBA;QAAC,KAAKX,EAAE;sBACzB,oBAACa,iBAAeA;QAAC,KAAKb,EAAE;sBACxB,oBAACc,kBAAgBA;QAAC,KAAKd,EAAE;sBAGzB,oBAACe,cAAYA;QAAC,KAAKf,EAAE;sBACrB,oBAACe,cAAYA;QAAC,KAAKf,EAAE;sBACrB,oBAACO,kBAAgBA;QAAC,KAAKP,EAAE;sBAGzB,oBAACe,cAAYA;QAAC,KAAKf,EAAE;sBAGrB,oBAACgB,YAAUA;QAAC,KAAKhB,EAAE;sBACnB,oBAACe,cAAYA;QAAC,KAAKf,EAAE;sBACrB,oBAACiB,aAAWA;QACR,KAAKjB,EAAE"}
1
+ {"version":3,"file":"extensions/ProjectAws.js","sources":["../../src/extensions/ProjectAws.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeWatch,\n AfterDeploy,\n ApiAfterDeploy,\n ApiBeforeDeploy,\n ApiBeforeWatch,\n BeforeDeploy,\n CoreBeforeDeploy,\n DatabaseSetup,\n ExtensionDefinitions,\n Project,\n ProjectImplementation\n} from \"@webiny/project/extensions/index.js\";\nimport { createPathResolver } from \"@webiny/project\";\nimport { CliCommand } from \"@webiny/cli-core/extensions/index.js\";\nimport { CorePulumi } from \"~/pulumi/extensions/CorePulumi.js\";\n\nconst p = createPathResolver(import.meta.dirname);\n\nexport const ProjectAws = () => {\n return (\n <>\n <Project />\n\n {/* Database Setup - default to DynamoDB only */}\n <DatabaseSetup setupName=\"ddb\" />\n\n {/* Set database setup output value in Core stack */}\n <CorePulumi src={p(\"ProjectAws/SetDatabaseSetupOutput.js\")} />\n\n {/* Stack Output Services */}\n <ProjectImplementation src={p(\"ProjectAws/CoreStackOutputService.js\")} singleton />\n <ProjectImplementation src={p(\"ProjectAws/ApiStackOutputService.js\")} singleton />\n <ProjectImplementation src={p(\"ProjectAws/AdminStackOutputService.js\")} singleton />\n\n <ProjectImplementation src={p(\"../features/InvokeLambdaFunction.js\")} singleton />\n <ProjectImplementation src={p(\"../features/ApiGqlClient.js\")} singleton />\n\n <AdminAfterDeploy src={p(\"ProjectAws/UploadAdminAppToS3.js\")} />\n\n <ApiAfterDeploy src={p(\"ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js\")} />\n <ExtensionDefinitions src={p(\"definitions.js\")} />\n <ExtensionDefinitions src={p(\"ProjectAws/definitions.js\")} />\n\n {/* Admin env vars */}\n <AdminBeforeBuild src={p(\"ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeBuild.js\")} />\n <AdminBeforeWatch src={p(\"ProjectAws/SetAdminEnvVars/SetAdminEnvVarsBeforeWatch.js\")} />\n\n {/* Deployment gates — AWS-only (there is no Pulumi stack output to check off-AWS) */}\n <ApiBeforeWatch src={p(\"ProjectAws/EnsureApiDeployedBeforeWatch.js\")} />\n <AdminBeforeBuild src={p(\"ProjectAws/EnsureApiDeployedBeforeAdminBuild.js\")} />\n <AdminBeforeWatch src={p(\"ProjectAws/EnsureApiDeployedBeforeAdminWatch.js\")} />\n <ApiBeforeDeploy src={p(\"ProjectAws/EnsureCoreDeployedBeforeApiDeploy.js\")} />\n <CoreBeforeDeploy src={p(\"ProjectAws/ValidateProductionPulumiState.js\")} />\n\n {/* Deploy-time hooks — standalone hosting type has no deploy command, so these are AWS-only */}\n <BeforeDeploy src={p(\"ProjectAws/EnsureTelemetryEnabledForOss.js\")} />\n <BeforeDeploy src={p(\"ProjectAws/ValidateEncryptionBeforeDeploy.js\")} />\n <AdminAfterDeploy src={p(\"ProjectAws/TelemetryNoLongerNewUser.js\")} />\n\n {/* AWS credentials check */}\n <BeforeDeploy src={p(\"ProjectAws/EnsureAwsCredentialsBeforeDeploy.js\")} />\n\n {/* Blue-green */}\n <CliCommand src={p(\"ProjectAws/BlueGreenDeployments/SetPrimaryVariantCliCommand.js\")} />\n <BeforeDeploy src={p(\"ProjectAws/BlueGreenDeployments/EnsureVariantBeforeDeploy.js\")} />\n <AfterDeploy\n src={p(\"ProjectAws/BlueGreenDeployments/PrintDeploymentInfoAfterDeploy.js\")}\n />\n </>\n );\n};\n"],"names":["p","createPathResolver","ProjectAws","Project","DatabaseSetup","CorePulumi","ProjectImplementation","AdminAfterDeploy","ApiAfterDeploy","ExtensionDefinitions","AdminBeforeBuild","AdminBeforeWatch","ApiBeforeWatch","ApiBeforeDeploy","CoreBeforeDeploy","BeforeDeploy","CliCommand","AfterDeploy"],"mappings":";;;;;AAoBA,MAAMA,IAAIC,mBAAmB,YAAY,OAAO;AAEzC,MAAMC,aAAa,IACf,WAAP,GACI,wDACI,oBAACC,SAAOA,OAAAA,WAAAA,GAGR,oBAACC,eAAaA;QAAC,WAAU;sBAGzB,oBAACC,YAAUA;QAAC,KAAKL,EAAE;sBAGnB,oBAACM,uBAAqBA;QAAC,KAAKN,EAAE;QAAyC;sBACvE,oBAACM,uBAAqBA;QAAC,KAAKN,EAAE;QAAwC;sBACtE,oBAACM,uBAAqBA;QAAC,KAAKN,EAAE;QAA0C;sBAExE,oBAACM,uBAAqBA;QAAC,KAAKN,EAAE;QAAwC;sBACtE,oBAACM,uBAAqBA;QAAC,KAAKN,EAAE;QAAgC;sBAE9D,oBAACO,kBAAgBA;QAAC,KAAKP,EAAE;sBAEzB,oBAACQ,gBAAcA;QAAC,KAAKR,EAAE;sBACvB,oBAACS,sBAAoBA;QAAC,KAAKT,EAAE;sBAC7B,oBAACS,sBAAoBA;QAAC,KAAKT,EAAE;sBAG7B,oBAACU,kBAAgBA;QAAC,KAAKV,EAAE;sBACzB,oBAACW,kBAAgBA;QAAC,KAAKX,EAAE;sBAGzB,oBAACY,gBAAcA;QAAC,KAAKZ,EAAE;sBACvB,oBAACU,kBAAgBA;QAAC,KAAKV,EAAE;sBACzB,oBAACW,kBAAgBA;QAAC,KAAKX,EAAE;sBACzB,oBAACa,iBAAeA;QAAC,KAAKb,EAAE;sBACxB,oBAACc,kBAAgBA;QAAC,KAAKd,EAAE;sBAGzB,oBAACe,cAAYA;QAAC,KAAKf,EAAE;sBACrB,oBAACe,cAAYA;QAAC,KAAKf,EAAE;sBACrB,oBAACO,kBAAgBA;QAAC,KAAKP,EAAE;sBAGzB,oBAACe,cAAYA;QAAC,KAAKf,EAAE;sBAGrB,oBAACgB,YAAUA;QAAC,KAAKhB,EAAE;sBACnB,oBAACe,cAAYA;QAAC,KAAKf,EAAE;sBACrB,oBAACiB,aAAWA;QACR,KAAKjB,EAAE"}
@@ -1,7 +1,6 @@
1
1
  import { GetProjectConfigService } from "@webiny/project/abstractions/index.js";
2
2
  import { ApiPulumi } from "../abstractions/features/pulumi/index.js";
3
3
  import { ApiRoute } from "./ApiRoute.js";
4
- import { ApiGraphql } from "../pulumi/apps/api/ApiGraphql.js";
5
4
  import { deriveRouteName, toApiGatewayPath } from "./routePath.js";
6
5
  class RegisterRoutesPulumiImpl {
7
6
  constructor(getProjectConfigService){
@@ -11,6 +10,7 @@ class RegisterRoutesPulumiImpl {
11
10
  const projectConfig = await this.getProjectConfigService.execute();
12
11
  const routeExtensions = projectConfig.extensionsByType(ApiRoute);
13
12
  if (!routeExtensions.length) return;
13
+ const { ApiGraphql } = await import("../pulumi/apps/api/ApiGraphql.js");
14
14
  const graphqlModule = app.getModule(ApiGraphql);
15
15
  for (const ext of routeExtensions){
16
16
  const { path: routePath, method, routeName } = ext.params;
@@ -1 +1 @@
1
- {"version":3,"file":"extensions/RegisterRoutesPulumi.js","sources":["../../src/extensions/RegisterRoutesPulumi.ts"],"sourcesContent":["import { GetProjectConfigService } from \"@webiny/project/abstractions/index.js\";\nimport { ApiPulumi } from \"~/abstractions/features/pulumi/index.js\";\nimport type { ApiPulumiApp } from \"~/pulumi/apps/api/createApiPulumiApp.js\";\nimport { ApiRoute } from \"./ApiRoute.js\";\nimport { ApiGraphql } from \"~/pulumi/apps/api/ApiGraphql.js\";\nimport { deriveRouteName, toApiGatewayPath } from \"./routePath.js\";\n\nclass RegisterRoutesPulumiImpl implements ApiPulumi.Interface {\n constructor(private getProjectConfigService: GetProjectConfigService.Interface) {}\n\n async execute(app: ApiPulumiApp): Promise<void> {\n // No tags filter — finds ApiRestRoute extensions regardless of their runtimeContext.\n const projectConfig = await this.getProjectConfigService.execute();\n const routeExtensions = projectConfig.extensionsByType(ApiRoute);\n\n if (!routeExtensions.length) {\n return;\n }\n\n const graphqlModule = app.getModule(ApiGraphql);\n\n for (const ext of routeExtensions) {\n const { path: routePath, method, routeName } = ext.params;\n const name = routeName ?? deriveRouteName(routePath, method);\n graphqlModule.addRoute({\n name,\n // The prop accepts `:id` too; API Gateway only understands `{id}`.\n path: toApiGatewayPath(routePath) as `/${string}`,\n method\n });\n }\n }\n}\n\nexport const RegisterRoutesPulumi = ApiPulumi.createImplementation({\n implementation: RegisterRoutesPulumiImpl,\n dependencies: [GetProjectConfigService]\n});\n"],"names":["RegisterRoutesPulumiImpl","getProjectConfigService","app","projectConfig","routeExtensions","ApiRoute","graphqlModule","ApiGraphql","ext","routePath","method","routeName","name","deriveRouteName","toApiGatewayPath","RegisterRoutesPulumi","ApiPulumi","GetProjectConfigService"],"mappings":";;;;;AAOA,MAAMA;IACF,YAAoBC,uBAA0D,CAAE;aAA5DA,uBAAuB,GAAvBA;IAA6D;IAEjF,MAAM,QAAQC,GAAiB,EAAiB;QAE5C,MAAMC,gBAAgB,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO;QAChE,MAAMC,kBAAkBD,cAAc,gBAAgB,CAACE;QAEvD,IAAI,CAACD,gBAAgB,MAAM,EACvB;QAGJ,MAAME,gBAAgBJ,IAAI,SAAS,CAACK;QAEpC,KAAK,MAAMC,OAAOJ,gBAAiB;YAC/B,MAAM,EAAE,MAAMK,SAAS,EAAEC,MAAM,EAAEC,SAAS,EAAE,GAAGH,IAAI,MAAM;YACzD,MAAMI,OAAOD,aAAaE,gBAAgBJ,WAAWC;YACrDJ,cAAc,QAAQ,CAAC;gBACnBM;gBAEA,MAAME,iBAAiBL;gBACvBC;YACJ;QACJ;IACJ;AACJ;AAEO,MAAMK,uBAAuBC,UAAU,oBAAoB,CAAC;IAC/D,gBAAgBhB;IAChB,cAAc;QAACiB;KAAwB;AAC3C"}
1
+ {"version":3,"file":"extensions/RegisterRoutesPulumi.js","sources":["../../src/extensions/RegisterRoutesPulumi.ts"],"sourcesContent":["import { GetProjectConfigService } from \"@webiny/project/abstractions/index.js\";\nimport { ApiPulumi } from \"~/abstractions/features/pulumi/index.js\";\nimport type { ApiPulumiApp } from \"~/pulumi/apps/api/createApiPulumiApp.js\";\nimport { ApiRoute } from \"./ApiRoute.js\";\nimport { deriveRouteName, toApiGatewayPath } from \"./routePath.js\";\n\nclass RegisterRoutesPulumiImpl implements ApiPulumi.Interface {\n constructor(private getProjectConfigService: GetProjectConfigService.Interface) {}\n\n async execute(app: ApiPulumiApp): Promise<void> {\n // No tags filter — finds ApiRestRoute extensions regardless of their runtimeContext.\n const projectConfig = await this.getProjectConfigService.execute();\n const routeExtensions = projectConfig.extensionsByType(ApiRoute);\n\n if (!routeExtensions.length) {\n return;\n }\n\n // Imported here rather than at the top of the file. Every CLI command imports this extension\n // when the project SDK registers it, even `webiny --help`, and `ApiGraphql` pulls in all of\n // Pulumi and the AWS SDK: about 2,700 modules. By the time `execute` runs we are inside a\n // Pulumi program that has already loaded all of that, so importing it here costs nothing.\n const { ApiGraphql } = await import(\"~/pulumi/apps/api/ApiGraphql.js\");\n\n const graphqlModule = app.getModule(ApiGraphql);\n\n for (const ext of routeExtensions) {\n const { path: routePath, method, routeName } = ext.params;\n const name = routeName ?? deriveRouteName(routePath, method);\n graphqlModule.addRoute({\n name,\n // The prop accepts `:id` too; API Gateway only understands `{id}`.\n path: toApiGatewayPath(routePath) as `/${string}`,\n method\n });\n }\n }\n}\n\nexport const RegisterRoutesPulumi = ApiPulumi.createImplementation({\n implementation: RegisterRoutesPulumiImpl,\n dependencies: [GetProjectConfigService]\n});\n"],"names":["RegisterRoutesPulumiImpl","getProjectConfigService","app","projectConfig","routeExtensions","ApiRoute","ApiGraphql","graphqlModule","ext","routePath","method","routeName","name","deriveRouteName","toApiGatewayPath","RegisterRoutesPulumi","ApiPulumi","GetProjectConfigService"],"mappings":";;;;AAMA,MAAMA;IACF,YAAoBC,uBAA0D,CAAE;aAA5DA,uBAAuB,GAAvBA;IAA6D;IAEjF,MAAM,QAAQC,GAAiB,EAAiB;QAE5C,MAAMC,gBAAgB,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO;QAChE,MAAMC,kBAAkBD,cAAc,gBAAgB,CAACE;QAEvD,IAAI,CAACD,gBAAgB,MAAM,EACvB;QAOJ,MAAM,EAAEE,UAAU,EAAE,GAAG,MAAM,MAAM,CAAC;QAEpC,MAAMC,gBAAgBL,IAAI,SAAS,CAACI;QAEpC,KAAK,MAAME,OAAOJ,gBAAiB;YAC/B,MAAM,EAAE,MAAMK,SAAS,EAAEC,MAAM,EAAEC,SAAS,EAAE,GAAGH,IAAI,MAAM;YACzD,MAAMI,OAAOD,aAAaE,gBAAgBJ,WAAWC;YACrDH,cAAc,QAAQ,CAAC;gBACnBK;gBAEA,MAAME,iBAAiBL;gBACvBC;YACJ;QACJ;IACJ;AACJ;AAEO,MAAMK,uBAAuBC,UAAU,oBAAoB,CAAC;IAC/D,gBAAgBhB;IAChB,cAAc;QAACiB;KAAwB;AAC3C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/project-aws",
3
- "version": "6.6.0-alpha.3",
3
+ "version": "6.6.0-alpha.5",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -20,15 +20,15 @@
20
20
  "@pulumi/aws": "^7.43.0",
21
21
  "@pulumi/pulumi": "^3.259.0",
22
22
  "@pulumi/random": "4.21.1",
23
- "@webiny/aws-layers": "6.6.0-alpha.3",
24
- "@webiny/aws-sdk": "6.6.0-alpha.3",
25
- "@webiny/cli-core": "6.6.0-alpha.3",
23
+ "@webiny/aws-layers": "6.6.0-alpha.5",
24
+ "@webiny/aws-sdk": "6.6.0-alpha.5",
25
+ "@webiny/cli-core": "6.6.0-alpha.5",
26
26
  "@webiny/di": "1.1.0",
27
- "@webiny/global-config": "6.6.0-alpha.3",
28
- "@webiny/project": "6.6.0-alpha.3",
29
- "@webiny/pulumi": "6.6.0-alpha.3",
30
- "@webiny/pulumi-sdk": "6.6.0-alpha.3",
31
- "@webiny/utils": "6.6.0-alpha.3",
27
+ "@webiny/global-config": "6.6.0-alpha.5",
28
+ "@webiny/project": "6.6.0-alpha.5",
29
+ "@webiny/pulumi": "6.6.0-alpha.5",
30
+ "@webiny/pulumi-sdk": "6.6.0-alpha.5",
31
+ "@webiny/utils": "6.6.0-alpha.5",
32
32
  "chalk": "6.0.0",
33
33
  "email-addresses": "5.0.0",
34
34
  "exit-hook": "5.1.0",
@@ -45,7 +45,7 @@
45
45
  "devDependencies": {
46
46
  "@types/lodash": "4.17.25",
47
47
  "@types/ncp": "2.0.8",
48
- "@webiny/build-tools": "6.6.0-alpha.3",
48
+ "@webiny/build-tools": "6.6.0-alpha.5",
49
49
  "typescript": "7.0.2",
50
50
  "vitest": "4.1.11"
51
51
  },
package/project.d.ts CHANGED
@@ -37,6 +37,8 @@ export declare const Project: {
37
37
  imageEnrichment: import("zod").ZodOptional<import("zod").ZodBoolean>;
38
38
  }, import("zod/v4/core").$strip>>;
39
39
  lexicalGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
40
+ adminAssistant: import("zod").ZodOptional<import("zod").ZodBoolean>;
41
+ remoteComponents: import("zod").ZodOptional<import("zod").ZodBoolean>;
40
42
  cms: import("zod").ZodOptional<import("zod").ZodObject<{
41
43
  entryGeneration: import("zod").ZodOptional<import("zod").ZodBoolean>;
42
44
  entryComparison: import("zod").ZodOptional<import("zod").ZodBoolean>;
@@ -44,7 +46,15 @@ export declare const Project: {
44
46
  }, import("zod/v4/core").$strip>>;
45
47
  }, import("zod/v4/core").$strip>]>>;
46
48
  abTesting: import("zod").ZodOptional<import("zod").ZodBoolean>;
47
- remoteComponents: import("zod").ZodOptional<import("zod").ZodBoolean>;
49
+ collaboration: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodBoolean, import("zod").ZodObject<{
50
+ comments: import("zod").ZodOptional<import("zod").ZodBoolean>;
51
+ activityLog: import("zod").ZodOptional<import("zod").ZodBoolean>;
52
+ }, import("zod/v4/core").$strip>]>>;
48
53
  }, import("zod/v4/core").$strip>;
49
54
  }, import("zod/v4/core").$strip>>;
55
+ BugReporter: import("@webiny/project/defineExtension/defineExtension.js").ExtensionComponent<import("zod").ZodObject<{
56
+ token: import("zod").ZodOptional<import("zod").ZodString>;
57
+ repository: import("zod").ZodOptional<import("zod").ZodString>;
58
+ labels: import("zod").ZodOptional<import("zod").ZodString>;
59
+ }, import("zod/v4/core").$strip>>;
50
60
  };
package/project.js CHANGED
@@ -1,10 +1,11 @@
1
- import { FeatureFlags, ProjectId, Telemetry } from "@webiny/project/extensions/index.js";
1
+ import { BugReporter, FeatureFlags, ProjectId, Telemetry } from "@webiny/project/extensions/index.js";
2
2
  import { AutoInstall } from "./extensions/index.js";
3
3
  const Project = {
4
4
  Id: ProjectId,
5
5
  Telemetry: Telemetry,
6
6
  AutoInstall: AutoInstall,
7
- FeatureFlags: FeatureFlags
7
+ FeatureFlags: FeatureFlags,
8
+ BugReporter: BugReporter
8
9
  };
9
10
  export { Project };
10
11
 
package/project.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"project.js","sources":["../src/project.ts"],"sourcesContent":["import { ProjectId, Telemetry, FeatureFlags } from \"@webiny/project/extensions/index.js\";\nimport { AutoInstall } from \"./extensions/index.js\";\n\nexport const Project = {\n Id: ProjectId,\n Telemetry,\n AutoInstall,\n FeatureFlags\n};\n"],"names":["Project","ProjectId","Telemetry","AutoInstall","FeatureFlags"],"mappings":";;AAGO,MAAMA,UAAU;IACnB,IAAIC;IACJC,WAASA;IACTC,aAAWA;IACXC,cAAYA;AAChB"}
1
+ {"version":3,"file":"project.js","sources":["../src/project.ts"],"sourcesContent":["import { ProjectId } from \"@webiny/project/extensions/index.js\";\nimport { Telemetry } from \"@webiny/project/extensions/index.js\";\nimport { FeatureFlags } from \"@webiny/project/extensions/index.js\";\nimport { BugReporter } from \"@webiny/project/extensions/index.js\";\nimport { AutoInstall } from \"./extensions/index.js\";\n\nexport const Project = {\n Id: ProjectId,\n Telemetry,\n AutoInstall,\n FeatureFlags,\n BugReporter\n};\n"],"names":["Project","ProjectId","Telemetry","AutoInstall","FeatureFlags","BugReporter"],"mappings":";;AAMO,MAAMA,UAAU;IACnB,IAAIC;IACJC,WAASA;IACTC,aAAWA;IACXC,cAAYA;IACZC,aAAWA;AACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"pulumi/utils/lambdaEnvVariables.js","sources":["../../../src/pulumi/utils/lambdaEnvVariables.ts"],"sourcesContent":["import * as pulumi from \"@pulumi/pulumi\";\nimport type { PulumiApp } from \"@webiny/pulumi\";\nimport { pickApiRuntimeEnvVariables } from \"@webiny/project\";\n\ntype EnvVariables = Record<string, string | pulumi.Output<string>>;\n\nconst variablesRegistry: EnvVariables = {};\n\nif (process.env.DEBUG === \"true\") {\n variablesRegistry.NODE_OPTIONS = \"--enable-source-maps\";\n}\n\nexport let sealEnvVariables: () => void;\n\nconst variablesPromise = new Promise<EnvVariables>(resolve => {\n sealEnvVariables = () => {\n // The api runtime allowlist (WEBINY_/WCP_PROJECT_ENVIRONMENT/OKTA_/AUTH0_ + DEBUG) is shared\n // with the self-hosted server hosting type — see @webiny/project's pickApiRuntimeEnvVariables.\n const baseVariables: EnvVariables = {\n ...pickApiRuntimeEnvVariables(),\n // This flag means that Lambda was deployed using the new Pulumi Apps architecture.\n PULUMI_APPS: \"true\"\n };\n\n resolve(Object.assign({}, baseVariables, variablesRegistry));\n };\n});\n\nexport function getCommonLambdaEnvVariables(): pulumi.Output<EnvVariables> {\n return pulumi.output(variablesPromise);\n}\n\nfunction setCommonLambdaEnvVariables(variables: EnvVariables) {\n Object.assign(variablesRegistry, variables);\n}\n\nexport interface SetCommonLambdaEnvVariables {\n (variables: EnvVariables): void;\n}\n\nexport interface WithCommonLambdaEnvVariables {\n /**\n * Set ENV variables that wil be assigned to all Lambda functions in the current Pulumi app.\n */\n setCommonLambdaEnvVariables: SetCommonLambdaEnvVariables;\n}\n\n/**\n * Augment the given app with `setCommonLambdaEnvVariables` functionality.\n * @param {PulumiApp} app\n */\nexport function withCommonLambdaEnvVariables<T extends PulumiApp>(\n app: T\n): T & WithCommonLambdaEnvVariables {\n app.decorateProgram<{ setCommonLambdaEnvVariables: typeof setCommonLambdaEnvVariables }>(\n async (program, app) => {\n const output = await program({\n ...app,\n setCommonLambdaEnvVariables\n });\n\n // Once the program is executed, we need to seal the variables (this will resolve the pulumi.output promise).\n app.addHandler(() => {\n sealEnvVariables();\n });\n\n return output;\n }\n );\n\n // Augment the original PulumiApp.\n return {\n ...app,\n setCommonLambdaEnvVariables\n };\n}\n"],"names":["variablesRegistry","process","sealEnvVariables","variablesPromise","Promise","resolve","baseVariables","pickApiRuntimeEnvVariables","Object","getCommonLambdaEnvVariables","pulumi","setCommonLambdaEnvVariables","variables","withCommonLambdaEnvVariables","app","program","output"],"mappings":";;AAMA,MAAMA,oBAAkC,CAAC;AAEzC,IAAIC,AAAsB,WAAtBA,QAAQ,GAAG,CAAC,KAAK,EACjBD,kBAAkB,YAAY,GAAG;AAG9B,IAAIE;AAEX,MAAMC,mBAAmB,IAAIC,QAAsBC,CAAAA;IAC/CH,mBAAmB;QAGf,MAAMI,gBAA8B;YAChC,GAAGC,4BAA4B;YAE/B,aAAa;QACjB;QAEAF,QAAQG,OAAO,MAAM,CAAC,CAAC,GAAGF,eAAeN;IAC7C;AACJ;AAEO,SAASS;IACZ,OAAOC,0CAAAA,MAAa,CAACP;AACzB;AAEA,SAASQ,4BAA4BC,SAAuB;IACxDJ,OAAO,MAAM,CAACR,mBAAmBY;AACrC;AAiBO,SAASC,6BACZC,GAAM;IAENA,IAAI,eAAe,CACf,OAAOC,SAASD;QACZ,MAAME,SAAS,MAAMD,QAAQ;YACzB,GAAGD,GAAG;YACNH,6BAAAA;QACJ;QAGAG,IAAI,UAAU,CAAC;YACXZ;QACJ;QAEA,OAAOc;IACX;IAIJ,OAAO;QACH,GAAGF,GAAG;QACNH,6BAAAA;IACJ;AACJ"}
1
+ {"version":3,"file":"pulumi/utils/lambdaEnvVariables.js","sources":["../../../src/pulumi/utils/lambdaEnvVariables.ts"],"sourcesContent":["import * as pulumi from \"@pulumi/pulumi\";\nimport type { PulumiApp } from \"@webiny/pulumi\";\nimport { pickApiRuntimeEnvVariables } from \"@webiny/project\";\n\ntype EnvVariables = Record<string, string | pulumi.Output<string>>;\n\nconst variablesRegistry: EnvVariables = {};\n\nif (process.env.DEBUG === \"true\") {\n variablesRegistry.NODE_OPTIONS = \"--enable-source-maps\";\n}\n\nexport let sealEnvVariables: () => void;\n\nconst variablesPromise = new Promise<EnvVariables>(resolve => {\n sealEnvVariables = () => {\n // The api runtime allowlist (WEBINY_/WCP_PROJECT_ENVIRONMENT/OKTA_/AUTH0_ + DEBUG) is shared\n // with the standalone hosting type — see @webiny/project's pickApiRuntimeEnvVariables.\n const baseVariables: EnvVariables = {\n ...pickApiRuntimeEnvVariables(),\n // This flag means that Lambda was deployed using the new Pulumi Apps architecture.\n PULUMI_APPS: \"true\"\n };\n\n resolve(Object.assign({}, baseVariables, variablesRegistry));\n };\n});\n\nexport function getCommonLambdaEnvVariables(): pulumi.Output<EnvVariables> {\n return pulumi.output(variablesPromise);\n}\n\nfunction setCommonLambdaEnvVariables(variables: EnvVariables) {\n Object.assign(variablesRegistry, variables);\n}\n\nexport interface SetCommonLambdaEnvVariables {\n (variables: EnvVariables): void;\n}\n\nexport interface WithCommonLambdaEnvVariables {\n /**\n * Set ENV variables that wil be assigned to all Lambda functions in the current Pulumi app.\n */\n setCommonLambdaEnvVariables: SetCommonLambdaEnvVariables;\n}\n\n/**\n * Augment the given app with `setCommonLambdaEnvVariables` functionality.\n * @param {PulumiApp} app\n */\nexport function withCommonLambdaEnvVariables<T extends PulumiApp>(\n app: T\n): T & WithCommonLambdaEnvVariables {\n app.decorateProgram<{ setCommonLambdaEnvVariables: typeof setCommonLambdaEnvVariables }>(\n async (program, app) => {\n const output = await program({\n ...app,\n setCommonLambdaEnvVariables\n });\n\n // Once the program is executed, we need to seal the variables (this will resolve the pulumi.output promise).\n app.addHandler(() => {\n sealEnvVariables();\n });\n\n return output;\n }\n );\n\n // Augment the original PulumiApp.\n return {\n ...app,\n setCommonLambdaEnvVariables\n };\n}\n"],"names":["variablesRegistry","process","sealEnvVariables","variablesPromise","Promise","resolve","baseVariables","pickApiRuntimeEnvVariables","Object","getCommonLambdaEnvVariables","pulumi","setCommonLambdaEnvVariables","variables","withCommonLambdaEnvVariables","app","program","output"],"mappings":";;AAMA,MAAMA,oBAAkC,CAAC;AAEzC,IAAIC,AAAsB,WAAtBA,QAAQ,GAAG,CAAC,KAAK,EACjBD,kBAAkB,YAAY,GAAG;AAG9B,IAAIE;AAEX,MAAMC,mBAAmB,IAAIC,QAAsBC,CAAAA;IAC/CH,mBAAmB;QAGf,MAAMI,gBAA8B;YAChC,GAAGC,4BAA4B;YAE/B,aAAa;QACjB;QAEAF,QAAQG,OAAO,MAAM,CAAC,CAAC,GAAGF,eAAeN;IAC7C;AACJ;AAEO,SAASS;IACZ,OAAOC,0CAAAA,MAAa,CAACP;AACzB;AAEA,SAASQ,4BAA4BC,SAAuB;IACxDJ,OAAO,MAAM,CAACR,mBAAmBY;AACrC;AAiBO,SAASC,6BACZC,GAAM;IAENA,IAAI,eAAe,CACf,OAAOC,SAASD;QACZ,MAAME,SAAS,MAAMD,QAAQ;YACzB,GAAGD,GAAG;YACNH,6BAAAA;QACJ;QAGAG,IAAI,UAAU,CAAC;YACXZ;QACJ;QAEA,OAAOc;IACX;IAIJ,OAAO;QACH,GAAGF,GAAG;QACNH,6BAAAA;IACJ;AACJ"}