@webiny/project-aws 6.0.0-rc.1 → 6.0.0-rc.3

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.
Files changed (61) hide show
  1. package/_templates/extensions/ApiLambdaFunction/package.json +9 -0
  2. package/_templates/extensions/ApiLambdaFunction/tsconfig.json +7 -0
  3. package/_templates/extensions/ApiLambdaFunction/webiny.config.ts +8 -0
  4. package/admin.d.ts +2 -2
  5. package/admin.js +1 -1
  6. package/admin.js.map +1 -1
  7. package/api.d.ts +2 -2
  8. package/api.js +2 -2
  9. package/api.js.map +1 -1
  10. package/apps/createAdminApp.d.ts +2 -0
  11. package/exports/extensions.d.ts +0 -1
  12. package/exports/extensions.js +0 -1
  13. package/exports/extensions.js.map +1 -1
  14. package/extensions/ApiLambdaFunction.d.ts +11 -0
  15. package/extensions/ApiLambdaFunction.js +68 -0
  16. package/extensions/ApiLambdaFunction.js.map +1 -0
  17. package/extensions/OpenSearch.js +3 -4
  18. package/extensions/OpenSearch.js.map +1 -1
  19. package/extensions/ProjectAws/definitions.js +1 -3
  20. package/extensions/ProjectAws/definitions.js.map +1 -1
  21. package/extensions/ProjectAws.js +5 -2
  22. package/extensions/ProjectAws.js.map +1 -1
  23. package/extensions/definitions.d.ts +3 -0
  24. package/extensions/definitions.js +6 -0
  25. package/extensions/definitions.js.map +1 -0
  26. package/extensions/index.d.ts +1 -0
  27. package/extensions/index.js +1 -0
  28. package/extensions/index.js.map +1 -1
  29. package/index.d.ts +0 -1
  30. package/index.js +0 -1
  31. package/index.js.map +1 -1
  32. package/infra.d.ts +10 -0
  33. package/infra.js +5 -2
  34. package/infra.js.map +1 -1
  35. package/package.json +12 -15
  36. package/project.d.ts +91 -0
  37. package/project.js +4 -3
  38. package/project.js.map +1 -1
  39. package/pulumi/apps/admin/createAdminPulumiApp.d.ts +2 -0
  40. package/pulumi/apps/api/ApiCloudfront.js +1 -1
  41. package/pulumi/apps/api/ApiCloudfront.js.map +1 -1
  42. package/pulumi/apps/api/createApiPulumiApp.js +2 -3
  43. package/pulumi/apps/api/createApiPulumiApp.js.map +1 -1
  44. package/pulumi/apps/core/CoreAuditLogsDynamo.js +67 -19
  45. package/pulumi/apps/core/CoreAuditLogsDynamo.js.map +1 -1
  46. package/pulumi/apps/core/CoreDynamo.js +18 -5
  47. package/pulumi/apps/core/CoreDynamo.js.map +1 -1
  48. package/pulumi/apps/core/CoreFileManager.d.ts +3 -0
  49. package/pulumi/apps/core/CoreFileManager.js +35 -7
  50. package/pulumi/apps/core/CoreFileManager.js.map +1 -1
  51. package/pulumi/apps/core/LogDynamo.js +39 -11
  52. package/pulumi/apps/core/LogDynamo.js.map +1 -1
  53. package/pulumi/apps/core/createCorePulumiApp.js +2 -3
  54. package/pulumi/apps/core/createCorePulumiApp.js.map +1 -1
  55. package/pulumi/apps/createAppBucket.d.ts +4 -0
  56. package/pulumi/apps/createAppBucket.js +42 -2
  57. package/pulumi/apps/createAppBucket.js.map +1 -1
  58. package/pulumi/apps/react/createReactPulumiApp.d.ts +2 -0
  59. package/security.d.ts +0 -356
  60. package/security.js +0 -53
  61. package/security.js.map +0 -1
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "{{functionName}}",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "scripts": {},
6
+ "dependencies": {
7
+ "@webiny/build-tools": "latest"
8
+ }
9
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "../../../../../tsconfig.json",
3
+ "include": ["src"],
4
+ "compilerOptions": {
5
+ "composite": false
6
+ }
7
+ }
@@ -0,0 +1,8 @@
1
+ import { createBuildFunction, createWatchFunction } from "@webiny/build-tools";
2
+
3
+ export default {
4
+ commands: {
5
+ build: createBuildFunction({ cwd: import.meta.dirname }),
6
+ watch: createWatchFunction({ cwd: import.meta.dirname })
7
+ }
8
+ };
package/admin.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export declare const Admin: {
2
- Extension: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
2
+ Extension: import("@webiny/project/defineExtension/defineExtension").ExtensionComponent<import("zod").ZodObject<{
3
3
  src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
4
4
  exportName: import("zod").ZodOptional<import("zod").ZodString>;
5
5
  }, "strip", import("zod").ZodTypeAny, {
@@ -9,7 +9,7 @@ export declare const Admin: {
9
9
  src: string;
10
10
  exportName?: string | undefined;
11
11
  }>>;
12
- BuildParam: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
12
+ BuildParam: import("@webiny/project/defineExtension/defineExtension").ExtensionComponent<import("zod").ZodObject<{
13
13
  paramName: import("zod").ZodString;
14
14
  value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>, import("zod").ZodArray<import("zod").ZodAny, "many">, import("zod").ZodNumber, import("zod").ZodBoolean]>;
15
15
  }, "strip", import("zod").ZodTypeAny, {
package/admin.js CHANGED
@@ -1,4 +1,4 @@
1
- import { AdminExtension, AdminBuildParam } from "@webiny/app-admin/extensions/index.js";
1
+ import { AdminExtension, AdminBuildParam } from "@webiny/project/extensions/index.js";
2
2
  export const Admin = {
3
3
  Extension: AdminExtension,
4
4
  BuildParam: AdminBuildParam
package/admin.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["AdminExtension","AdminBuildParam","Admin","Extension","BuildParam"],"sources":["admin.ts"],"sourcesContent":["import { AdminExtension, AdminBuildParam } from \"@webiny/app-admin/extensions/index.js\";\n\nexport const Admin = {\n Extension: AdminExtension,\n BuildParam: AdminBuildParam\n};\n"],"mappings":"AAAA,SAASA,cAAc,EAAEC,eAAe,QAAQ,uCAAuC;AAEvF,OAAO,MAAMC,KAAK,GAAG;EACjBC,SAAS,EAAEH,cAAc;EACzBI,UAAU,EAAEH;AAChB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["AdminExtension","AdminBuildParam","Admin","Extension","BuildParam"],"sources":["admin.ts"],"sourcesContent":["import { AdminExtension, AdminBuildParam } from \"@webiny/project/extensions/index.js\";\n\nexport const Admin = {\n Extension: AdminExtension,\n BuildParam: AdminBuildParam\n};\n"],"mappings":"AAAA,SAASA,cAAc,EAAEC,eAAe,QAAQ,qCAAqC;AAErF,OAAO,MAAMC,KAAK,GAAG;EACjBC,SAAS,EAAEH,cAAc;EACzBI,UAAU,EAAEH;AAChB,CAAC","ignoreList":[]}
package/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export declare const Api: {
2
- Extension: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
2
+ Extension: import("@webiny/project/defineExtension/defineExtension").ExtensionComponent<import("zod").ZodObject<{
3
3
  src: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
4
4
  exportName: import("zod").ZodOptional<import("zod").ZodString>;
5
5
  }, "strip", import("zod").ZodTypeAny, {
@@ -9,7 +9,7 @@ export declare const Api: {
9
9
  src: string;
10
10
  exportName?: string | undefined;
11
11
  }>>;
12
- BuildParam: import("@webiny/project/defineExtension").ExtensionComponent<import("zod").ZodObject<{
12
+ BuildParam: import("@webiny/project/defineExtension/defineExtension").ExtensionComponent<import("zod").ZodObject<{
13
13
  paramName: import("zod").ZodString;
14
14
  value: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>, import("zod").ZodArray<import("zod").ZodAny, "many">, import("zod").ZodNumber, import("zod").ZodBoolean]>;
15
15
  }, "strip", import("zod").ZodTypeAny, {
package/api.js CHANGED
@@ -1,6 +1,6 @@
1
- import { GenericExtension, BuildParam } from "@webiny/api-core/extensions/index.js";
1
+ import { ApiExtension, BuildParam } from "@webiny/project/extensions/index.js";
2
2
  export const Api = {
3
- Extension: GenericExtension,
3
+ Extension: ApiExtension,
4
4
  BuildParam: BuildParam
5
5
  };
6
6
 
package/api.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["GenericExtension","BuildParam","Api","Extension"],"sources":["api.ts"],"sourcesContent":["import { GenericExtension, BuildParam } from \"@webiny/api-core/extensions/index.js\";\n\nexport const Api = {\n Extension: GenericExtension,\n BuildParam: BuildParam\n};\n"],"mappings":"AAAA,SAASA,gBAAgB,EAAEC,UAAU,QAAQ,sCAAsC;AAEnF,OAAO,MAAMC,GAAG,GAAG;EACfC,SAAS,EAAEH,gBAAgB;EAC3BC,UAAU,EAAEA;AAChB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["ApiExtension","BuildParam","Api","Extension"],"sources":["api.ts"],"sourcesContent":["import { ApiExtension, BuildParam } from \"@webiny/project/extensions/index.js\";\n\nexport const Api = {\n Extension: ApiExtension,\n BuildParam: BuildParam\n};\n"],"mappings":"AAAA,SAASA,YAAY,EAAEC,UAAU,QAAQ,qCAAqC;AAE9E,OAAO,MAAMC,GAAG,GAAG;EACfC,SAAS,EAAEH,YAAY;EACvBC,UAAU,EAAEA;AAChB,CAAC","ignoreList":[]}
@@ -5,6 +5,8 @@ export declare function createAdminApp(): {
5
5
  getPulumi(): Promise<import("@webiny/pulumi/types").PulumiApp<{
6
6
  cloudfront: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cloudfront/distribution").Distribution>;
7
7
  bucket: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucket").Bucket>;
8
+ bucketOwnershipControls: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketOwnershipControls").BucketOwnershipControls>;
9
+ bucketAcl: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketAcl").BucketAcl>;
8
10
  originIdentity: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/cloudfront/originAccessIdentity").OriginAccessIdentity>;
9
11
  origin: import("@pulumi/aws/types/input").cloudfront.DistributionOrigin;
10
12
  bucketPublicAccessBlock: import("@webiny/pulumi/PulumiAppResource").PulumiAppResource<typeof import("@pulumi/aws/s3/bucketPublicAccessBlock").BucketPublicAccessBlock>;
@@ -3,5 +3,4 @@ export { Admin } from "../admin.js";
3
3
  export { Cli } from "../cli.js";
4
4
  export { Infra } from "../infra.js";
5
5
  export { Project } from "../project.js";
6
- export { Security } from "../security.js";
7
6
  export { ApiStackOutputService, CoreStackOutputService, ApiGqlClient, AdminStackOutputService, InvokeLambdaFunction } from "../abstractions/index.js";
@@ -3,7 +3,6 @@ export { Admin } from "../admin.js";
3
3
  export { Cli } from "../cli.js";
4
4
  export { Infra } from "../infra.js";
5
5
  export { Project } from "../project.js";
6
- export { Security } from "../security.js";
7
6
  export { ApiStackOutputService, CoreStackOutputService, ApiGqlClient, AdminStackOutputService, InvokeLambdaFunction } from "../abstractions/index.js";
8
7
 
9
8
  //# sourceMappingURL=extensions.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Api","Admin","Cli","Infra","Project","Security","ApiStackOutputService","CoreStackOutputService","ApiGqlClient","AdminStackOutputService","InvokeLambdaFunction"],"sources":["extensions.ts"],"sourcesContent":["export { Api } from \"~/api.js\";\nexport { Admin } from \"~/admin.js\";\nexport { Cli } from \"~/cli.js\";\nexport { Infra } from \"~/infra.js\";\nexport { Project } from \"~/project.js\";\nexport { Security } from \"~/security.js\";\nexport {\n ApiStackOutputService,\n CoreStackOutputService,\n ApiGqlClient,\n AdminStackOutputService,\n InvokeLambdaFunction\n} from \"~/abstractions/index.js\";\n"],"mappings":"AAAA,SAASA,GAAG;AACZ,SAASC,KAAK;AACd,SAASC,GAAG;AACZ,SAASC,KAAK;AACd,SAASC,OAAO;AAChB,SAASC,QAAQ;AACjB,SACIC,qBAAqB,EACrBC,sBAAsB,EACtBC,YAAY,EACZC,uBAAuB,EACvBC,oBAAoB","ignoreList":[]}
1
+ {"version":3,"names":["Api","Admin","Cli","Infra","Project","ApiStackOutputService","CoreStackOutputService","ApiGqlClient","AdminStackOutputService","InvokeLambdaFunction"],"sources":["extensions.ts"],"sourcesContent":["export { Api } from \"~/api.js\";\nexport { Admin } from \"~/admin.js\";\nexport { Cli } from \"~/cli.js\";\nexport { Infra } from \"~/infra.js\";\nexport { Project } from \"~/project.js\";\nexport {\n ApiStackOutputService,\n CoreStackOutputService,\n ApiGqlClient,\n AdminStackOutputService,\n InvokeLambdaFunction\n} from \"~/abstractions/index.js\";\n"],"mappings":"AAAA,SAASA,GAAG;AACZ,SAASC,KAAK;AACd,SAASC,GAAG;AACZ,SAASC,KAAK;AACd,SAASC,OAAO;AAChB,SACIC,qBAAqB,EACrBC,sBAAsB,EACtBC,YAAY,EACZC,uBAAuB,EACvBC,oBAAoB","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export declare const ApiLambdaFunction: import("@webiny/project/defineExtension/defineExtension").ExtensionComponent<z.ZodObject<{
3
+ functionSrc: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
4
+ pulumiSrc: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ functionSrc: string;
7
+ pulumiSrc: string;
8
+ }, {
9
+ functionSrc: string;
10
+ pulumiSrc: string;
11
+ }>>;
@@ -0,0 +1,68 @@
1
+ import React from "react";
2
+ import path from "path";
3
+ import fs from "fs";
4
+ import { z } from "zod";
5
+ import { replaceInPath } from "replace-in-path";
6
+ import { defineExtension } from "@webiny/project/defineExtension/index.js";
7
+ import { zodSrcPath } from "@webiny/project/defineExtension/zodTypes/zodSrcPath.js";
8
+ import { ExtensionSrcResolver } from "@webiny/project/utils/index.js";
9
+ import { ApiPulumi as ApiPulumiAbstraction } from "@webiny/project/abstractions/features/pulumi/index.js";
10
+ import { ApiPulumi } from "@webiny/project/extensions/index.js";
11
+ import { getTemplatesFolderPath } from "../utils/index.js";
12
+ export const ApiLambdaFunction = defineExtension({
13
+ type: "Api/LambdaFunction",
14
+ tags: {
15
+ runtimeContext: "app-build",
16
+ appName: "api"
17
+ },
18
+ description: "Add a custom Lambda function to the API app.",
19
+ multiple: true,
20
+ paramsSchema: ({
21
+ project
22
+ }) => {
23
+ return z.object({
24
+ functionSrc: zodSrcPath({
25
+ project
26
+ }),
27
+ pulumiSrc: zodSrcPath({
28
+ project,
29
+ abstraction: ApiPulumiAbstraction
30
+ })
31
+ });
32
+ },
33
+ async build(params, ctx) {
34
+ const absoluteFunctionSrc = ExtensionSrcResolver.resolvePath(params.functionSrc, ctx.project);
35
+
36
+ // Derive function name from the handler file name (without extension).
37
+ const functionName = path.parse(absoluteFunctionSrc).name;
38
+ const fnWorkspacePath = ctx.project.paths.workspaceFolder.join("apps", "api", functionName).toString();
39
+
40
+ // 1. Scaffold from template if the folder doesn't exist yet.
41
+ if (!fs.existsSync(fnWorkspacePath)) {
42
+ const templatePath = path.join(getTemplatesFolderPath(), "extensions", "ApiLambdaFunction");
43
+ fs.cpSync(templatePath, fnWorkspacePath, {
44
+ recursive: true
45
+ });
46
+
47
+ // Replace the {{functionName}} placeholder in package.json.
48
+ replaceInPath(path.join(fnWorkspacePath, "package.json"), {
49
+ find: "{{functionName}}",
50
+ replaceWith: functionName
51
+ });
52
+ }
53
+
54
+ // 2. Copy user's handler file → <functionName>/src/index.ts.
55
+ const srcDir = path.join(fnWorkspacePath, "src");
56
+ fs.mkdirSync(srcDir, {
57
+ recursive: true
58
+ });
59
+ fs.copyFileSync(absoluteFunctionSrc, path.join(srcDir, "index.ts"));
60
+ },
61
+ render(props) {
62
+ return /*#__PURE__*/React.createElement(ApiPulumi, {
63
+ src: props.pulumiSrc
64
+ });
65
+ }
66
+ });
67
+
68
+ //# sourceMappingURL=ApiLambdaFunction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","path","fs","z","replaceInPath","defineExtension","zodSrcPath","ExtensionSrcResolver","ApiPulumi","ApiPulumiAbstraction","getTemplatesFolderPath","ApiLambdaFunction","type","tags","runtimeContext","appName","description","multiple","paramsSchema","project","object","functionSrc","pulumiSrc","abstraction","build","params","ctx","absoluteFunctionSrc","resolvePath","functionName","parse","name","fnWorkspacePath","paths","workspaceFolder","join","toString","existsSync","templatePath","cpSync","recursive","find","replaceWith","srcDir","mkdirSync","copyFileSync","render","props","createElement","src"],"sources":["ApiLambdaFunction.tsx"],"sourcesContent":["import React from \"react\";\nimport path from \"path\";\nimport fs from \"fs\";\nimport { z } from \"zod\";\nimport { replaceInPath } from \"replace-in-path\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport { zodSrcPath } from \"@webiny/project/defineExtension/zodTypes/zodSrcPath.js\";\nimport { ExtensionSrcResolver } from \"@webiny/project/utils/index.js\";\nimport { ApiPulumi as ApiPulumiAbstraction } from \"@webiny/project/abstractions/features/pulumi/index.js\";\nimport { ApiPulumi } from \"@webiny/project/extensions/index.js\";\nimport { getTemplatesFolderPath } from \"~/utils/index.js\";\n\nexport const ApiLambdaFunction = defineExtension({\n type: \"Api/LambdaFunction\",\n tags: { runtimeContext: \"app-build\", appName: \"api\" },\n description: \"Add a custom Lambda function to the API app.\",\n multiple: true,\n paramsSchema: ({ project }) => {\n return z.object({\n functionSrc: zodSrcPath({ project }),\n pulumiSrc: zodSrcPath({ project, abstraction: ApiPulumiAbstraction })\n });\n },\n async build(params, ctx) {\n const absoluteFunctionSrc = ExtensionSrcResolver.resolvePath(\n params.functionSrc,\n ctx.project\n );\n\n // Derive function name from the handler file name (without extension).\n const functionName = path.parse(absoluteFunctionSrc).name;\n\n const fnWorkspacePath = ctx.project.paths.workspaceFolder\n .join(\"apps\", \"api\", functionName)\n .toString();\n\n // 1. Scaffold from template if the folder doesn't exist yet.\n if (!fs.existsSync(fnWorkspacePath)) {\n const templatePath = path.join(\n getTemplatesFolderPath(),\n \"extensions\",\n \"ApiLambdaFunction\"\n );\n\n fs.cpSync(templatePath, fnWorkspacePath, { recursive: true });\n\n // Replace the {{functionName}} placeholder in package.json.\n replaceInPath(path.join(fnWorkspacePath, \"package.json\"), {\n find: \"{{functionName}}\",\n replaceWith: functionName\n });\n }\n\n // 2. Copy user's handler file → <functionName>/src/index.ts.\n const srcDir = path.join(fnWorkspacePath, \"src\");\n fs.mkdirSync(srcDir, { recursive: true });\n fs.copyFileSync(absoluteFunctionSrc, path.join(srcDir, \"index.ts\"));\n },\n render(props) {\n return <ApiPulumi src={props.pulumiSrc} />;\n }\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,IAAI,MAAM,MAAM;AACvB,OAAOC,EAAE,MAAM,IAAI;AACnB,SAASC,CAAC,QAAQ,KAAK;AACvB,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,eAAe,QAAQ,0CAA0C;AAC1E,SAASC,UAAU,QAAQ,wDAAwD;AACnF,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,SAASC,SAAS,IAAIC,oBAAoB,QAAQ,uDAAuD;AACzG,SAASD,SAAS,QAAQ,qCAAqC;AAC/D,SAASE,sBAAsB;AAE/B,OAAO,MAAMC,iBAAiB,GAAGN,eAAe,CAAC;EAC7CO,IAAI,EAAE,oBAAoB;EAC1BC,IAAI,EAAE;IAAEC,cAAc,EAAE,WAAW;IAAEC,OAAO,EAAE;EAAM,CAAC;EACrDC,WAAW,EAAE,8CAA8C;EAC3DC,QAAQ,EAAE,IAAI;EACdC,YAAY,EAAEA,CAAC;IAAEC;EAAQ,CAAC,KAAK;IAC3B,OAAOhB,CAAC,CAACiB,MAAM,CAAC;MACZC,WAAW,EAAEf,UAAU,CAAC;QAAEa;MAAQ,CAAC,CAAC;MACpCG,SAAS,EAAEhB,UAAU,CAAC;QAAEa,OAAO;QAAEI,WAAW,EAAEd;MAAqB,CAAC;IACxE,CAAC,CAAC;EACN,CAAC;EACD,MAAMe,KAAKA,CAACC,MAAM,EAAEC,GAAG,EAAE;IACrB,MAAMC,mBAAmB,GAAGpB,oBAAoB,CAACqB,WAAW,CACxDH,MAAM,CAACJ,WAAW,EAClBK,GAAG,CAACP,OACR,CAAC;;IAED;IACA,MAAMU,YAAY,GAAG5B,IAAI,CAAC6B,KAAK,CAACH,mBAAmB,CAAC,CAACI,IAAI;IAEzD,MAAMC,eAAe,GAAGN,GAAG,CAACP,OAAO,CAACc,KAAK,CAACC,eAAe,CACpDC,IAAI,CAAC,MAAM,EAAE,KAAK,EAAEN,YAAY,CAAC,CACjCO,QAAQ,CAAC,CAAC;;IAEf;IACA,IAAI,CAAClC,EAAE,CAACmC,UAAU,CAACL,eAAe,CAAC,EAAE;MACjC,MAAMM,YAAY,GAAGrC,IAAI,CAACkC,IAAI,CAC1BzB,sBAAsB,CAAC,CAAC,EACxB,YAAY,EACZ,mBACJ,CAAC;MAEDR,EAAE,CAACqC,MAAM,CAACD,YAAY,EAAEN,eAAe,EAAE;QAAEQ,SAAS,EAAE;MAAK,CAAC,CAAC;;MAE7D;MACApC,aAAa,CAACH,IAAI,CAACkC,IAAI,CAACH,eAAe,EAAE,cAAc,CAAC,EAAE;QACtDS,IAAI,EAAE,kBAAkB;QACxBC,WAAW,EAAEb;MACjB,CAAC,CAAC;IACN;;IAEA;IACA,MAAMc,MAAM,GAAG1C,IAAI,CAACkC,IAAI,CAACH,eAAe,EAAE,KAAK,CAAC;IAChD9B,EAAE,CAAC0C,SAAS,CAACD,MAAM,EAAE;MAAEH,SAAS,EAAE;IAAK,CAAC,CAAC;IACzCtC,EAAE,CAAC2C,YAAY,CAAClB,mBAAmB,EAAE1B,IAAI,CAACkC,IAAI,CAACQ,MAAM,EAAE,UAAU,CAAC,CAAC;EACvE,CAAC;EACDG,MAAMA,CAACC,KAAK,EAAE;IACV,oBAAO/C,KAAA,CAAAgD,aAAA,CAACxC,SAAS;MAACyC,GAAG,EAAEF,KAAK,CAACzB;IAAU,CAAE,CAAC;EAC9C;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -1,9 +1,8 @@
1
1
  import React from "react";
2
2
  import { defineExtension } from "@webiny/project/defineExtension/index.js";
3
3
  import { OpenSearch as PulumiOpenSearch } from "../pulumi/extensions/index.js";
4
- import { Infra } from "../index.js";
5
4
  import { createPathResolver } from "@webiny/project";
6
- import { ProjectDecorator, DatabaseSetup } from "@webiny/project/extensions/index.js";
5
+ import { CoreBeforeDeploy, ProjectDecorator, DatabaseSetup } from "@webiny/project/extensions/index.js";
7
6
  import { z } from "zod";
8
7
  const p = createPathResolver(import.meta.dirname, "OpenSearch");
9
8
  export const OpenSearch = defineExtension({
@@ -25,9 +24,9 @@ export const OpenSearch = defineExtension({
25
24
  src: p("InjectDdbEsLambdaFnHandler.js")
26
25
  }), /*#__PURE__*/React.createElement(ProjectDecorator, {
27
26
  src: p("ReplaceApiLambdaFnHandlers.js")
28
- }), /*#__PURE__*/React.createElement(Infra.Core.BeforeDeploy, {
27
+ }), /*#__PURE__*/React.createElement(CoreBeforeDeploy, {
29
28
  src: p("EnsureOsServiceRoleBeforeCoreDeploy.js")
30
- }), /*#__PURE__*/React.createElement(Infra.Core.BeforeDeploy, {
29
+ }), /*#__PURE__*/React.createElement(CoreBeforeDeploy, {
31
30
  src: p("EnsureOsWasDeployed.js")
32
31
  })));
33
32
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","defineExtension","OpenSearch","PulumiOpenSearch","Infra","createPathResolver","ProjectDecorator","DatabaseSetup","z","p","import","meta","dirname","type","tags","runtimeContext","description","paramsSchema","object","enabled","boolean","describe","default","optional","domainName","string","indexPrefix","sharedIndexes","render","props","createElement","Fragment","setupName","src","Core","BeforeDeploy"],"sources":["OpenSearch.tsx"],"sourcesContent":["import React from \"react\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport { OpenSearch as PulumiOpenSearch } from \"~/pulumi/extensions/index.js\";\nimport { Infra } from \"~/index.js\";\nimport { createPathResolver } from \"@webiny/project\";\nimport { ProjectDecorator, DatabaseSetup } from \"@webiny/project/extensions/index.js\";\nimport { z } from \"zod\";\n\nconst p = createPathResolver(import.meta.dirname, \"OpenSearch\");\n\nexport const OpenSearch = defineExtension({\n type: \"Project/OpenSearch\",\n tags: { runtimeContext: \"project\" },\n description: \"Enable and configure Opensearch integration with project-level setup.\",\n paramsSchema: z.object({\n enabled: z.boolean().describe(\"Whether to enable OpenSearch.\").default(false).optional(),\n domainName: z.string().describe(\"The name of the Opensearch domain.\").optional(),\n indexPrefix: z\n .string()\n .describe(\"A prefix to be added to all Opensearch indexes.\")\n .optional(),\n sharedIndexes: z\n .boolean()\n .describe(\n \"Whether to use shared indexes across all environments (true) or separate indexes per environment (false).\"\n )\n .default(false)\n .optional()\n }),\n render: props => {\n return (\n <>\n <PulumiOpenSearch {...props} />\n {props.enabled && (\n <>\n {/* Override database setup to indicate OpenSearch is enabled. */}\n <DatabaseSetup setupName=\"ddb+os\" />\n <ProjectDecorator src={p(\"InjectDdbEsLambdaFnHandler.js\")} />\n <ProjectDecorator src={p(\"ReplaceApiLambdaFnHandlers.js\")} />\n <Infra.Core.BeforeDeploy\n src={p(\"EnsureOsServiceRoleBeforeCoreDeploy.js\")}\n />\n <Infra.Core.BeforeDeploy src={p(\"EnsureOsWasDeployed.js\")} />\n </>\n )}\n </>\n );\n }\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,0CAA0C;AAC1E,SAASC,UAAU,IAAIC,gBAAgB;AACvC,SAASC,KAAK;AACd,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,SAASC,gBAAgB,EAAEC,aAAa,QAAQ,qCAAqC;AACrF,SAASC,CAAC,QAAQ,KAAK;AAEvB,MAAMC,CAAC,GAAGJ,kBAAkB,CAACK,MAAM,CAACC,IAAI,CAACC,OAAO,EAAE,YAAY,CAAC;AAE/D,OAAO,MAAMV,UAAU,GAAGD,eAAe,CAAC;EACtCY,IAAI,EAAE,oBAAoB;EAC1BC,IAAI,EAAE;IAAEC,cAAc,EAAE;EAAU,CAAC;EACnCC,WAAW,EAAE,uEAAuE;EACpFC,YAAY,EAAET,CAAC,CAACU,MAAM,CAAC;IAC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,CAACC,YAAY;MAACF,GAAG,EAAExB,CAAC,CAAC,wBAAwB;IAAE,CAAE,CAC9D,CAER,CAAC;EAEX;AACJ,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","defineExtension","OpenSearch","PulumiOpenSearch","createPathResolver","CoreBeforeDeploy","ProjectDecorator","DatabaseSetup","z","p","import","meta","dirname","type","tags","runtimeContext","description","paramsSchema","object","enabled","boolean","describe","default","optional","domainName","string","indexPrefix","sharedIndexes","render","props","createElement","Fragment","setupName","src"],"sources":["OpenSearch.tsx"],"sourcesContent":["import React from \"react\";\nimport { defineExtension } from \"@webiny/project/defineExtension/index.js\";\nimport { OpenSearch as PulumiOpenSearch } from \"~/pulumi/extensions/index.js\";\nimport { createPathResolver } from \"@webiny/project\";\nimport {\n CoreBeforeDeploy,\n ProjectDecorator,\n DatabaseSetup\n} from \"@webiny/project/extensions/index.js\";\nimport { z } from \"zod\";\n\nconst p = createPathResolver(import.meta.dirname, \"OpenSearch\");\n\nexport const OpenSearch = defineExtension({\n type: \"Project/OpenSearch\",\n tags: { runtimeContext: \"project\" },\n description: \"Enable and configure Opensearch integration with project-level setup.\",\n paramsSchema: z.object({\n enabled: z.boolean().describe(\"Whether to enable OpenSearch.\").default(false).optional(),\n domainName: z.string().describe(\"The name of the Opensearch domain.\").optional(),\n indexPrefix: z\n .string()\n .describe(\"A prefix to be added to all Opensearch indexes.\")\n .optional(),\n sharedIndexes: z\n .boolean()\n .describe(\n \"Whether to use shared indexes across all environments (true) or separate indexes per environment (false).\"\n )\n .default(false)\n .optional()\n }),\n render: props => {\n return (\n <>\n <PulumiOpenSearch {...props} />\n {props.enabled && (\n <>\n {/* Override database setup to indicate OpenSearch is enabled. */}\n <DatabaseSetup setupName=\"ddb+os\" />\n <ProjectDecorator src={p(\"InjectDdbEsLambdaFnHandler.js\")} />\n <ProjectDecorator src={p(\"ReplaceApiLambdaFnHandlers.js\")} />\n <CoreBeforeDeploy src={p(\"EnsureOsServiceRoleBefore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B,KAAA,CAAA8B,aAAA,CAAC3B,gBAAgB,EAAK0B,KAAQ,CAAC,EAC9BA,KAAK,CAACV,OAAO,iBACVnB,KAAA,CAAA8B,aAAA,CAAA9B,KAAA,CAAA+B,QAAA,qBAEI/B,KAAA,CAAA8B,aAAA,CAACvB,aAAa;MAACyB,SAAS,EAAC;IAAQ,CAAE,CAAC,eACpChC,KAAA,CAAA8B,aAAA,CAACxB,gBAAgB;MAAC2B,GAAG,EAAExB,CAAC,CAAC,+BAA+B;IAAE,CAAE,CAAC,eAC7DT,KAAA,CAAA8B,aAAA,CAACxB,gBAAgB;MAAC2B,GAAG,EAAExB,CAAC,CAAC,+BAA+B;IAAE,CAAE,CAAC,eAC7DT,KAAA,CAAA8B,aAAA,CAACzB,gBAAgB;MAAC4B,GAAG,EAAExB,CAAC,CAAC,wCAAwC;IAAE,CAAE,CAAC,eACtET,KAAA,CAAA8B,aAAA,CAACzB,gBAAgB;MAAC4B,GAAG,EAAExB,CAAC,CAAC,wBAAwB;IAAE,CAAE,CACvD,CAER,CAAC;EAEX;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -1,11 +1,9 @@
1
1
  import { definitions as projectDefinitions } from "@webiny/project/extensions/index.js";
2
2
  import { definitions as cliDefinitions } from "@webiny/cli-core/extensions/index.js";
3
- import { definitions as apiCoreDefinitions } from "@webiny/api-core/extensions/index.js";
4
3
  import { definitions as cmsDefinitions } from "@webiny/api-headless-cms/extensions/index.js";
5
- import { definitions as adminDefinitions } from "@webiny/app-admin/extensions/index.js";
6
4
  import { definitions as projectAws } from "../../pulumi/extensions/index.js";
7
5
  import { AutoInstall } from "./AutoInstall.js";
8
- const definitions = [...cliDefinitions, ...apiCoreDefinitions, ...projectDefinitions, ...cmsDefinitions, ...adminDefinitions, ...projectAws, AutoInstall.def];
6
+ const definitions = [...cliDefinitions, ...projectDefinitions, ...cmsDefinitions, ...projectAws, AutoInstall.def];
9
7
  export default definitions;
10
8
 
11
9
  //# sourceMappingURL=definitions.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["definitions","projectDefinitions","cliDefinitions","apiCoreDefinitions","cmsDefinitions","adminDefinitions","projectAws","AutoInstall","def"],"sources":["definitions.ts"],"sourcesContent":["import {\n definitions as projectDefinitions,\n type ExtensionDefinitionModel\n} from \"@webiny/project/extensions/index.js\";\nimport { definitions as cliDefinitions } from \"@webiny/cli-core/extensions/index.js\";\nimport { definitions as apiCoreDefinitions } from \"@webiny/api-core/extensions/index.js\";\nimport { definitions as cmsDefinitions } from \"@webiny/api-headless-cms/extensions/index.js\";\nimport { definitions as adminDefinitions } from \"@webiny/app-admin/extensions/index.js\";\nimport { definitions as projectAws } from \"~/pulumi/extensions/index.js\";\nimport { AutoInstall } from \"./AutoInstall.js\";\n\nconst definitions = [\n ...cliDefinitions,\n ...apiCoreDefinitions,\n ...projectDefinitions,\n ...cmsDefinitions,\n ...adminDefinitions,\n ...projectAws,\n AutoInstall.def\n] as unknown as ExtensionDefinitionModel<any>[];\n\nexport default definitions;\n"],"mappings":"AAAA,SACIA,WAAW,IAAIC,kBAAkB,QAE9B,qCAAqC;AAC5C,SAASD,WAAW,IAAIE,cAAc,QAAQ,sCAAsC;AACpF,SAASF,WAAW,IAAIG,kBAAkB,QAAQ,sCAAsC;AACxF,SAASH,WAAW,IAAII,cAAc,QAAQ,8CAA8C;AAC5F,SAASJ,WAAW,IAAIK,gBAAgB,QAAQ,uCAAuC;AACvF,SAASL,WAAW,IAAIM,UAAU;AAClC,SAASC,WAAW;AAEpB,MAAMP,WAAW,GAAG,CAChB,GAAGE,cAAc,EACjB,GAAGC,kBAAkB,EACrB,GAAGF,kBAAkB,EACrB,GAAGG,cAAc,EACjB,GAAGC,gBAAgB,EACnB,GAAGC,UAAU,EACbC,WAAW,CAACC,GAAG,CAC4B;AAE/C,eAAeR,WAAW","ignoreList":[]}
1
+ {"version":3,"names":["definitions","projectDefinitions","cliDefinitions","cmsDefinitions","projectAws","AutoInstall","def"],"sources":["definitions.ts"],"sourcesContent":["import {\n definitions as projectDefinitions,\n type ExtensionDefinitionModel\n} from \"@webiny/project/extensions/index.js\";\nimport { definitions as cliDefinitions } from \"@webiny/cli-core/extensions/index.js\";\nimport { definitions as cmsDefinitions } from \"@webiny/api-headless-cms/extensions/index.js\";\nimport { definitions as projectAws } from \"~/pulumi/extensions/index.js\";\nimport { AutoInstall } from \"./AutoInstall.js\";\n\nconst definitions = [\n ...cliDefinitions,\n ...projectDefinitions,\n ...cmsDefinitions,\n ...projectAws,\n AutoInstall.def\n] as unknown as ExtensionDefinitionModel<any>[];\n\nexport default definitions;\n"],"mappings":"AAAA,SACIA,WAAW,IAAIC,kBAAkB,QAE9B,qCAAqC;AAC5C,SAASD,WAAW,IAAIE,cAAc,QAAQ,sCAAsC;AACpF,SAASF,WAAW,IAAIG,cAAc,QAAQ,8CAA8C;AAC5F,SAASH,WAAW,IAAII,UAAU;AAClC,SAASC,WAAW;AAEpB,MAAML,WAAW,GAAG,CAChB,GAAGE,cAAc,EACjB,GAAGD,kBAAkB,EACrB,GAAGE,cAAc,EACjB,GAAGC,UAAU,EACbC,WAAW,CAACC,GAAG,CAC4B;AAE/C,eAAeN,WAAW","ignoreList":[]}
@@ -2,15 +2,16 @@ import React from "react";
2
2
  import { AdminAfterDeploy, AdminBeforeBuild, AdminBeforeWatch, AfterDeploy, ApiAfterDeploy, BeforeDeploy, DatabaseSetup, ExtensionDefinitions, Project, ProjectDecorator, ProjectImplementation } from "@webiny/project/extensions/index.js";
3
3
  import { createPathResolver } from "@webiny/project";
4
4
  import { CliCommand } from "@webiny/cli-core/extensions/index.js";
5
+ import { CorePulumi } from "@webiny/project/extensions/index.js";
5
6
  // import { TenantManager } from "@webiny/tenant-manager";
6
- import { Infra } from "../index.js";
7
+
7
8
  const p = createPathResolver(import.meta.dirname);
8
9
  export const ProjectAws = () => {
9
10
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Project, null), /*#__PURE__*/React.createElement(ProjectDecorator, {
10
11
  src: p("ProjectAws/BuildAppWorkspace.js")
11
12
  }), /*#__PURE__*/React.createElement(DatabaseSetup, {
12
13
  setupName: "ddb"
13
- }), /*#__PURE__*/React.createElement(Infra.Core.Pulumi, {
14
+ }), /*#__PURE__*/React.createElement(CorePulumi, {
14
15
  src: p("ProjectAws/SetDatabaseSetupOutput.js")
15
16
  }), /*#__PURE__*/React.createElement(ProjectImplementation, {
16
17
  src: p("ProjectAws/CoreStackOutputService.js"),
@@ -31,6 +32,8 @@ export const ProjectAws = () => {
31
32
  src: p("ProjectAws/UploadAdminAppToS3.js")
32
33
  }), /*#__PURE__*/React.createElement(ApiAfterDeploy, {
33
34
  src: p("ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.js")
35
+ }), /*#__PURE__*/React.createElement(ExtensionDefinitions, {
36
+ src: p("definitions.js")
34
37
  }), /*#__PURE__*/React.createElement(ExtensionDefinitions, {
35
38
  src: p("ProjectAws/definitions.js")
36
39
  }), /*#__PURE__*/React.createElement(AdminBeforeBuild, {
@@ -1 +1 @@
1
- {"version":3,"names":["React","AdminAfterDeploy","AdminBeforeBuild","AdminBeforeWatch","AfterDeploy","ApiAfterDeploy","BeforeDeploy","DatabaseSetup","ExtensionDefinitions","Project","ProjectDecorator","ProjectImplementation","createPathResolver","CliCommand","Infra","p","import","meta","dirname","ProjectAws","createElement","Fragment","src","setupName","Core","Pulumi","singleton"],"sources":["ProjectAws.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeWatch,\n AfterDeploy,\n ApiAfterDeploy,\n BeforeDeploy,\n DatabaseSetup,\n ExtensionDefinitions,\n Project,\n ProjectDecorator,\n ProjectImplementation\n} from \"@webiny/project/extensions/index.js\";\nimport { createPathResolver } from \"@webiny/project\";\nimport { CliCommand } from \"@webiny/cli-core/extensions/index.js\";\n// import { TenantManager } from \"@webiny/tenant-manager\";\nimport { Infra } from \"~/index.js\";\n\nconst p = createPathResolver(import.meta.dirname);\n\nexport const ProjectAws = () => {\n return (\n <>\n <Project />\n <ProjectDecorator src={p(\"ProjectAws/BuildAppWorkspace.js\")} />\n\n {/* Database Setup - default to DynamoDB only */}\n <DatabaseSetup setupName=\"ddb\" />\n\n {/* Set database setup output value in Core stack */}\n <Infra.Core.Pulumi 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 {/* We'll bring this back once needed. */}\n {/* <ApiAfterDeploy src={p(\"ProjectAws/ExecuteDataMigrations.js\")} /> */}\n\n <ApiAfterDeploy src={p(\"ProjectAws/AutoInstall/AutoInstallAfterApiDeploy.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 {/* 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 {/* Tenant Manager */}\n {/*<TenantManager />*/}\n </>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACIC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AqC,CAAE;IAACW,SAAS;EAAA,CAAE,CAAC,eAClF1B,KAAA,CAAAoB,aAAA,CAACT,qBAAqB;IAACW,GAAG,EAAEP,CAAC,CAAC,6BAA6B,CAAE;IAACW,SAAS;EAAA,CAAE,CAAC,eAE1E1B,KAAA,CAAAoB,aAAA,CAACnB,gBAAgB;IAACqB,GAAG,EAAEP,CAAC,CAAC,kCAAkC;EAAE,CAAE,CAAC,eAKhEf,KAAA,CAAAoB,aAAA,CAACf,cAAc;IAACiB,GAAG,EAAEP,CAAC,CAAC,qDAAqD;EAAE,CAAE,CAAC,eACjFf,KAAA,CAAAoB,aAAA,CAACZ,oBAAoB;IAACc,GAAG,EAAEP,CAAC,CAAC,2BAA2B;EAAE,CAAE,CAAC,eAG7Df,KAAA,CAAAoB,aAAA,CAAClB,gBAAgB;IAACoB,GAAG,EAAEP,CAAC,CAAC,0DAA0D;EAAE,CAAE,CAAC,eACxFf,KAAA,CAAAoB,aAAA,CAACjB,gBAAgB;IAACmB,GAAG,EAAEP,CAAC,CAAC,0DAA0D;EAAE,CAAE,CAAC,eAGxFf,KAAA,CAAAoB,aAAA,CAACP,UAAU;IAACS,GAAG,EAAEP,CAAC,CAAC,gEAAgE;EAAE,CAAE,CAAC,eACxFf,KAAA,CAAAoB,aAAA,CAACd,YAAY;IAACgB,GAAG,EAAEP,CAAC,CAAC,8DAA8D;EAAE,CAAE,CAAC,eACxFf,KAAA,CAAAoB,aAAA,CAAChB,WAAW;IACRkB,GAAG,EAAEP,CAAC,CAAC,mEAAmE;EAAE,CAC/E,CAIH,CAAC;AAEX,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","AdminAfterDeploy","AdminBeforeBuild","AdminBeforeWatch","AfterDeploy","ApiAfterDeploy","BeforeDeploy","DatabaseSetup","ExtensionDefinitions","Project","ProjectDecorator","ProjectImplementation","createPathResolver","CliCommand","CorePulumi","p","import","meta","dirname","ProjectAws","createElement","Fragment","src","setupName","singleton"],"sources":["ProjectAws.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeWatch,\n AfterDeploy,\n ApiAfterDeploy,\n BeforeDeploy,\n DatabaseSetup,\n ExtensionDefinitions,\n Project,\n ProjectDecorator,\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 \"@webiny/project/extensions/index.js\";\n// import { TenantManager } from \"@webiny/tenant-manager\";\n\nconst p = createPathResolver(import.meta.dirname);\n\nexport const ProjectAws = () => {\n return (\n <>\n <Project />\n <ProjectDecorator src={p(\"ProjectAws/BuildAppWorkspace.js\")} />\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 {/* We'll bring this back once needed. */}\n {/* <ApiAfterDeploy src={p(\"ProjectAws/ExecuteDataMigrations.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 {/* 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 {/* Tenant Manager */}\n {/*<TenantManager />*/}\n </>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACIC,gBAAgB,EAChBC,gBAAgB,EAChBC,gBAAgB,EAChBC,WAAW,EACXC,cAAc,EACdC,YAAY,EACZC,aAAa,EACbC,oBAAoB,EACpBC,OAAO,EACPC,gBAAgB,EAChBC,qBAAqB,QAClB,qCAAqC;AAC5C,SAASC,kBAAkB,QAAQ,iBAAiB;AACpD,SAASC,UAAU,QAAQ,sCAAsC;AACjE,SAASC,UAAU,QAAQ,qCAAqC;AAChE;;AAEA,MAAMC,CAAC,GAAGH,kBAAkB,CAACI,MAAM,CAACC,IAAI,CAACC,OAAO,CAAC;AAEjD,OAAO,MAAMC,UAAU,GAAGA,CAAA,KAAM;EAC5B,oBACInB,KAAA,CAAAoB,aAAA,CAAApB,KAAA,CAAAqB,QAAA,qBACIrB,KAAA,CAAAoB,aAAA,CAACX,OAAO,MAAE,CAAC,eACXT,KAAA,CAAAoB,aAAA,CAACV,gBAAgB;IAACY,GAAG,EAAEP,CAAC,CAAC,iCAAiC;EAAE,CAAE,CAAC,eAG/Df,KAAA,CAAAoB,aAAA,CAACb,aAAa;IAACgB,SAAS,EAAC;EAAK,CAAE,CAAC,eAGjCvB,KAAA,CAAAoB,aAAA,CAACN,UAAU;IAACQ,GAAG,EAAEP,CAAC,CAAC,sCAAsC;EAAE,CAAE,CAAC,eAG9Df,KAAA,CAAAoB,aAAA,CAACT,qBAAqB;IAACW,GAA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AgE;EAAE,CAAE,CAAC,eACxFf,KAAA,CAAAoB,aAAA,CAACd,YAAY;IAACgB,GAAG,EAAEP,CAAC,CAAC,8DAA8D;EAAE,CAAE,CAAC,eACxFf,KAAA,CAAAoB,aAAA,CAAChB,WAAW;IACRkB,GAAG,EAAEP,CAAC,CAAC,mEAAmE;EAAE,CAC/E,CAIH,CAAC;AAEX,CAAC","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import { type ExtensionDefinitionModel } from "@webiny/project/defineExtension";
2
+ declare const definitions: ExtensionDefinitionModel<any>[];
3
+ export default definitions;
@@ -0,0 +1,6 @@
1
+ import { ApiLambdaFunction } from "./ApiLambdaFunction.js";
2
+ import { OpenSearch } from "./OpenSearch.js";
3
+ const definitions = [ApiLambdaFunction.def, OpenSearch.def];
4
+ export default definitions;
5
+
6
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ApiLambdaFunction","OpenSearch","definitions","def"],"sources":["definitions.ts"],"sourcesContent":["import { ApiLambdaFunction } from \"./ApiLambdaFunction.js\";\nimport { OpenSearch } from \"./OpenSearch.js\";\nimport { type ExtensionDefinitionModel } from \"@webiny/project/defineExtension\";\n\nconst definitions = [\n ApiLambdaFunction.def,\n OpenSearch.def\n] as unknown as ExtensionDefinitionModel<any>[];\n\nexport default definitions;\n"],"mappings":"AAAA,SAASA,iBAAiB;AAC1B,SAASC,UAAU;AAGnB,MAAMC,WAAW,GAAG,CAChBF,iBAAiB,CAACG,GAAG,EACrBF,UAAU,CAACE,GAAG,CAC6B;AAE/C,eAAeD,WAAW","ignoreList":[]}
@@ -2,3 +2,4 @@ export * from "./OpenSearch.js";
2
2
  export * from "./AwsDefaultRegion.js";
3
3
  export * from "./ProjectAws/AutoInstall.js";
4
4
  export * from "./ProjectAws.js";
5
+ export * from "./ApiLambdaFunction.js";
@@ -2,5 +2,6 @@ export * from "./OpenSearch.js";
2
2
  export * from "./AwsDefaultRegion.js";
3
3
  export * from "./ProjectAws/AutoInstall.js";
4
4
  export * from "./ProjectAws.js";
5
+ export * from "./ApiLambdaFunction.js";
5
6
 
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./OpenSearch.js\";\nexport * from \"./AwsDefaultRegion.js\";\nexport * from \"./ProjectAws/AutoInstall.js\";\nexport * from \"./ProjectAws.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./OpenSearch.js\";\nexport * from \"./AwsDefaultRegion.js\";\nexport * from \"./ProjectAws/AutoInstall.js\";\nexport * from \"./ProjectAws.js\";\nexport * from \"./ApiLambdaFunction.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA","ignoreList":[]}
package/index.d.ts CHANGED
@@ -3,5 +3,4 @@ export * from "./admin.js";
3
3
  export * from "./cli.js";
4
4
  export * from "./infra.js";
5
5
  export * from "./project.js";
6
- export * from "./security.js";
7
6
  export * from "./abstractions/index.js";
package/index.js CHANGED
@@ -3,7 +3,6 @@ export * from "./admin.js";
3
3
  export * from "./cli.js";
4
4
  export * from "./infra.js";
5
5
  export * from "./project.js";
6
- export * from "./security.js";
7
6
  export * from "./abstractions/index.js";
8
7
 
9
8
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./api.js\";\nexport * from \"./admin.js\";\nexport * from \"./cli.js\";\nexport * from \"./infra.js\";\nexport * from \"./project.js\";\nexport * from \"./security.js\";\nexport * from \"./abstractions/index.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./api.js\";\nexport * from \"./admin.js\";\nexport * from \"./cli.js\";\nexport * from \"./infra.js\";\nexport * from \"./project.js\";\nexport * from \"./abstractions/index.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
package/infra.d.ts CHANGED
@@ -341,6 +341,16 @@ export declare const Infra: {
341
341
  key: string;
342
342
  value?: any;
343
343
  }>>;
344
+ LambdaFunction: import("@webiny/project/defineExtension/defineExtension.js").ExtensionComponent<import("zod").ZodObject<{
345
+ functionSrc: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
346
+ pulumiSrc: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
347
+ }, "strip", import("zod").ZodTypeAny, {
348
+ functionSrc: string;
349
+ pulumiSrc: string;
350
+ }, {
351
+ functionSrc: string;
352
+ pulumiSrc: string;
353
+ }>>;
344
354
  };
345
355
  Core: {
346
356
  BeforeBuild: import("@webiny/project/defineExtension/defineExtension.js").ExtensionComponent<import("zod").ZodObject<{
package/infra.js CHANGED
@@ -1,6 +1,8 @@
1
1
  import { AdminAfterBuild, AdminAfterDeploy, AdminBeforeBuild, AdminBeforeDeploy, AdminBeforeWatch, AdminPulumi, AdminStackOutputValue, ApiAfterBuild, ApiAfterDeploy, ApiBeforeBuild, ApiBeforeDeploy, ApiBeforeWatch, ApiPulumi, ApiStackOutputValue, CoreAfterBuild, CoreAfterDeploy, CoreBeforeBuild, CoreBeforeDeploy, CoreBeforeWatch, CorePulumi, CoreStackOutputValue, ProductionEnvironments, PulumiResourceNamePrefix } from "@webiny/project/extensions/index.js";
2
2
  import { AdminCustomDomains, AwsTags, BlueGreenDeployments, Vpc } from "./pulumi/extensions/index.js";
3
- import { OpenSearch, AwsDefaultRegion } from "./extensions/index.js";
3
+ import { OpenSearch } from "./extensions/OpenSearch.js";
4
+ import { AwsDefaultRegion } from "./extensions/AwsDefaultRegion.js";
5
+ import { ApiLambdaFunction } from "./extensions/ApiLambdaFunction.js";
4
6
  import { EnvIs, EnvIsNot } from "@webiny/project/extensions/infra/index.js";
5
7
  export const Infra = {
6
8
  Vpc,
@@ -33,7 +35,8 @@ export const Infra = {
33
35
  AfterBuild: ApiAfterBuild,
34
36
  AfterDeploy: ApiAfterDeploy,
35
37
  Pulumi: ApiPulumi,
36
- StackOutputValue: ApiStackOutputValue
38
+ StackOutputValue: ApiStackOutputValue,
39
+ LambdaFunction: ApiLambdaFunction
37
40
  },
38
41
  Core: {
39
42
  BeforeBuild: CoreBeforeBuild,
package/infra.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["AdminAfterBuild","AdminAfterDeploy","AdminBeforeBuild","AdminBeforeDeploy","AdminBeforeWatch","AdminPulumi","AdminStackOutputValue","ApiAfterBuild","ApiAfterDeploy","ApiBeforeBuild","ApiBeforeDeploy","ApiBeforeWatch","ApiPulumi","ApiStackOutputValue","CoreAfterBuild","CoreAfterDeploy","CoreBeforeBuild","CoreBeforeDeploy","CoreBeforeWatch","CorePulumi","CoreStackOutputValue","ProductionEnvironments","PulumiResourceNamePrefix","AdminCustomDomains","AwsTags","BlueGreenDeployments","Vpc","OpenSearch","AwsDefaultRegion","EnvIs","EnvIsNot","Infra","Aws","DefaultRegion","Tags","Env","Is","IsNot","Admin","BeforeBuild","BeforeDeploy","BeforeWatch","AfterBuild","AfterDeploy","Pulumi","CustomDomains","StackOutputValue","Api","Core"],"sources":["infra.ts"],"sourcesContent":["import {\n AdminAfterBuild,\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeDeploy,\n AdminBeforeWatch,\n AdminPulumi,\n AdminStackOutputValue,\n ApiAfterBuild,\n ApiAfterDeploy,\n ApiBeforeBuild,\n ApiBeforeDeploy,\n ApiBeforeWatch,\n ApiPulumi,\n ApiStackOutputValue,\n CoreAfterBuild,\n CoreAfterDeploy,\n CoreBeforeBuild,\n CoreBeforeDeploy,\n CoreBeforeWatch,\n CorePulumi,\n CoreStackOutputValue,\n ProductionEnvironments,\n PulumiResourceNamePrefix\n} from \"@webiny/project/extensions/index.js\";\n\nimport {\n AdminCustomDomains,\n AwsTags,\n BlueGreenDeployments,\n Vpc\n} from \"./pulumi/extensions/index.js\";\n\nimport { OpenSearch, AwsDefaultRegion } from \"./extensions/index.js\";\nimport { EnvIs, EnvIsNot } from \"@webiny/project/extensions/infra/index.js\";\n\nexport const Infra = {\n Vpc,\n BlueGreenDeployments,\n OpenSearch,\n PulumiResourceNamePrefix,\n ProductionEnvironments,\n Aws: {\n DefaultRegion: AwsDefaultRegion,\n Tags: AwsTags\n },\n Env: {\n Is: EnvIs,\n IsNot: EnvIsNot\n },\n Admin: {\n BeforeBuild: AdminBeforeBuild,\n BeforeDeploy: AdminBeforeDeploy,\n BeforeWatch: AdminBeforeWatch,\n AfterBuild: AdminAfterBuild,\n AfterDeploy: AdminAfterDeploy,\n Pulumi: AdminPulumi,\n CustomDomains: AdminCustomDomains,\n StackOutputValue: AdminStackOutputValue\n },\n Api: {\n BeforeBuild: ApiBeforeBuild,\n BeforeDeploy: ApiBeforeDeploy,\n BeforeWatch: ApiBeforeWatch,\n AfterBuild: ApiAfterBuild,\n AfterDeploy: ApiAfterDeploy,\n Pulumi: ApiPulumi,\n StackOutputValue: ApiStackOutputValue\n },\n Core: {\n BeforeBuild: CoreBeforeBuild,\n BeforeDeploy: CoreBeforeDeploy,\n BeforeWatch: CoreBeforeWatch,\n AfterBuild: CoreAfterBuild,\n AfterDeploy: CoreAfterDeploy,\n Pulumi: CorePulumi,\n StackOutputValue: CoreStackOutputValue\n }\n};\n"],"mappings":"AAAA,SACIA,eAAe,EACfC,gBAAgB,EAChBC,gBAAgB,EAChBC,iBAAiB,EACjBC,gBAAgB,EAChBC,WAAW,EACXC,qBAAqB,EACrBC,aAAa,EACbC,cAAc,EACdC,cAAc,EACdC,eAAe,EACfC,cAAc,EACdC,SAAS,EACTC,mBAAmB,EACnBC,cAAc,EACdC,eAAe,EACfC,eAAe,EACfC,gBAAgB,EAChBC,eAAe,EACfC,UAAU,EACVC,oBAAoB,EACpBC,sBAAsB,EACtBC,wBAAwB,QACrB,qCAAqC;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eforeWatch","AdminPulumi","AdminStackOutputValue","ApiAfterBuild","ApiAfterDeploy","ApiBeforeBuild","ApiBeforeDeploy","ApiBeforeWatch","ApiPulumi","ApiStackOutputValue","CoreAfterBuild","CoreAfterDeploy","CoreBeforeBuild","CoreBeforeDeploy","CoreBeforeWatch","CorePulumi","CoreStackOutputValue","ProductionEnvironments","PulumiResourceNamePrefix","AdminCustomDomains","AwsTags","BlueGreenDeployments","Vpc","OpenSearch","AwsDefaultRegion","ApiLambdaFunction","EnvIs","EnvIsNot","Infra","Aws","DefaultRegion","Tags","Env","Is","IsNot","Admin","BeforeBuild","BeforeDeploy","BeforeWatch","AfterBuild","AfterDeploy","Pulumi","CustomDomains","StackOutputValue","Api","LambdaFunction","Core"],"sources":["infra.ts"],"sourcesContent":["import {\n AdminAfterBuild,\n AdminAfterDeploy,\n AdminBeforeBuild,\n AdminBeforeDeploy,\n AdminBeforeWatch,\n AdminPulumi,\n AdminStackOutputValue,\n ApiAfterBuild,\n ApiAfterDeploy,\n ApiBeforeBuild,\n ApiBeforeDeploy,\n ApiBeforeWatch,\n ApiPulumi,\n ApiStackOutputValue,\n CoreAfterBuild,\n CoreAfterDeploy,\n CoreBeforeBuild,\n CoreBeforeDeploy,\n CoreBeforeWatch,\n CorePulumi,\n CoreStackOutputValue,\n ProductionEnvironments,\n PulumiResourceNamePrefix\n} from \"@webiny/project/extensions/index.js\";\n\nimport {\n AdminCustomDomains,\n AwsTags,\n BlueGreenDeployments,\n Vpc\n} from \"./pulumi/extensions/index.js\";\n\nimport { OpenSearch } from \"./extensions/OpenSearch.js\";\nimport { AwsDefaultRegion } from \"./extensions/AwsDefaultRegion.js\";\nimport { ApiLambdaFunction } from \"./extensions/ApiLambdaFunction.js\";\nimport { EnvIs, EnvIsNot } from \"@webiny/project/extensions/infra/index.js\";\n\nexport const Infra = {\n Vpc,\n BlueGreenDeployments,\n OpenSearch,\n PulumiResourceNamePrefix,\n ProductionEnvironments,\n Aws: {\n DefaultRegion: AwsDefaultRegion,\n Tags: AwsTags\n },\n Env: {\n Is: EnvIs,\n IsNot: EnvIsNot\n },\n Admin: {\n BeforeBuild: AdminBeforeBuild,\n BeforeDeploy: AdminBeforeDeploy,\n BeforeWatch: AdminBeforeWatch,\n AfterBuild: AdminAfterBuild,\n AfterDeploy: AdminAfterDeploy,\n Pulumi: AdminPulumi,\n CustomDomains: AdminCustomDomains,\n StackOutputValue: AdminStackOutputValue\n },\n Api: {\n BeforeBuild: ApiBeforeBuild,\n BeforeDeploy: ApiBeforeDeploy,\n BeforeWatch: ApiBeforeWatch,\n AfterBuild: ApiAfterBuild,\n AfterDeploy: ApiAfterDeploy,\n Pulumi: ApiPulumi,\n StackOutputValue: ApiStackOutputValue,\n LambdaFunction: ApiLambdaFunction\n },\n Core: {\n BeforeBuild: CoreBeforeBuild,\n BeforeDeploy: CoreBeforeDeploy,\n BeforeWatch: CoreBeforeWatch,\n AfterBuild: CoreAfterBuild,\n AfterDeploy: CoreAfterDeploy,\n Pulumi: CorePulumi,\n StackOutputValue: CoreStackOutputValue\n }\n};\n"],"mappings":"AAAA,SACIA,eAAe,EACfC,gBAAgB,EAChBC,gBAAgB,EAChBC,iBAAiB,EACjBC,gBAAgB,EAChBC,WAAW,EACXC,qBAAqB,EACrBC,aAAa,EACbC,cAAc,EACdC,cAAc,EACdC,eAAe,EACfC,cAAc,EACdC,SAAS,EACTC,mBAAmB,EACnBC,cAAc,EACdC,eAAe,EACfC,eAAe,EACfC,gBAAgB,EAChBC,eAAe,EACfC,UAAU,EACVC,oBAAoB,EACpBC,sBAAsB,EACtBC,wBAAwB,QACrB,qCAAqC;AAE5C,SACIC,kBAAkB,EAClBC,OAAO,EACPC,oBAAoB,EACpBC,GAAG;AAGP,SAASC,UAAU;AACnB,SAASC,gBAAgB;AACzB,SAASC,iBAAiB;AAC1B,SAASC,KAAK,EAAEC,QAAQ,QAAQ,2CAA2C;AAE3E,OAAO,MAAMC,KAAK,GAAG;EACjBN,GAAG;EACHD,oBAAoB;EACpBE,UAAU;EACVL,wBAAwB;EACxBD,sBAAsB;EACtBY,GAAG,EAAE;IACDC,aAAa,EAAEN,gBAAgB;IAC/BO,IAAI,EAAEX;EACV,CAAC;EACDY,GAAG,EAAE;IACDC,EAAE,EAAEP,KAAK;IACTQ,KAAK,EAAEP;EACX,CAAC;EACDQ,KAAK,EAAE;IACHC,WAAW,EAAEtC,gBAAgB;IAC7BuC,YAAY,EAAEtC,iBAAiB;IAC/BuC,WAAW,EAAEtC,gBAAgB;IAC7BuC,UAAU,EAAE3C,eAAe;IAC3B4C,WAAW,EAAE3C,gBAAgB;IAC7B4C,MAAM,EAAExC,WAAW;IACnByC,aAAa,EAAEvB,kBAAkB;IACjCwB,gBAAgB,EAAEzC;EACtB,CAAC;EACD0C,GAAG,EAAE;IACDR,WAAW,EAAE/B,cAAc;IAC3BgC,YAAY,EAAE/B,eAAe;IAC7BgC,WAAW,EAAE/B,cAAc;IAC3BgC,UAAU,EAAEpC,aAAa;IACzBqC,WAAW,EAAEpC,cAAc;IAC3BqC,MAAM,EAAEjC,SAAS;IACjBmC,gBAAgB,EAAElC,mBAAmB;IACrCoC,cAAc,EAAEpB;EACpB,CAAC;EACDqB,IAAI,EAAE;IACFV,WAAW,EAAExB,eAAe;IAC5ByB,YAAY,EAAExB,gBAAgB;IAC9ByB,WAAW,EAAExB,eAAe;IAC5ByB,UAAU,EAAE7B,cAAc;IAC1B8B,WAAW,EAAE7B,eAAe;IAC5B8B,MAAM,EAAE1B,UAAU;IAClB4B,gBAAgB,EAAE3B;EACtB;AACJ,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/project-aws",
3
- "version": "6.0.0-rc.1",
3
+ "version": "6.0.0-rc.3",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "repository": {
@@ -18,17 +18,14 @@
18
18
  "@pulumi/aws": "^7.20.0",
19
19
  "@pulumi/pulumi": "^3.223.0",
20
20
  "@pulumi/random": "4.19.1",
21
- "@webiny/api-core": "6.0.0-rc.1",
22
- "@webiny/api-headless-cms": "6.0.0-rc.1",
23
- "@webiny/app-admin": "6.0.0-rc.1",
24
- "@webiny/aws-layers": "6.0.0-rc.1",
25
- "@webiny/aws-sdk": "6.0.0-rc.1",
26
- "@webiny/cli-core": "6.0.0-rc.1",
27
- "@webiny/data-migration": "6.0.0-rc.1",
28
- "@webiny/project": "6.0.0-rc.1",
29
- "@webiny/pulumi": "6.0.0-rc.1",
30
- "@webiny/utils": "6.0.0-rc.1",
31
- "@webiny/wcp": "6.0.0-rc.1",
21
+ "@webiny/api-headless-cms": "6.0.0-rc.3",
22
+ "@webiny/aws-layers": "6.0.0-rc.3",
23
+ "@webiny/aws-sdk": "6.0.0-rc.3",
24
+ "@webiny/cli-core": "6.0.0-rc.3",
25
+ "@webiny/data-migration": "6.0.0-rc.3",
26
+ "@webiny/project": "6.0.0-rc.3",
27
+ "@webiny/pulumi": "6.0.0-rc.3",
28
+ "@webiny/utils": "6.0.0-rc.3",
32
29
  "chalk": "4.1.2",
33
30
  "find-up": "5.0.0",
34
31
  "invariant": "2.2.4",
@@ -39,9 +36,9 @@
39
36
  "zod": "3.25.76"
40
37
  },
41
38
  "devDependencies": {
42
- "@types/lodash": "4.17.23",
39
+ "@types/lodash": "4.17.24",
43
40
  "@types/ncp": "2.0.8",
44
- "@webiny/build-tools": "6.0.0-rc.1",
41
+ "@webiny/build-tools": "6.0.0-rc.3",
45
42
  "typescript": "5.9.3"
46
43
  },
47
44
  "adio": {
@@ -59,5 +56,5 @@
59
56
  ]
60
57
  }
61
58
  },
62
- "gitHead": "36d702721ff9ed39fb21d6f5fe7922a2a8716e63"
59
+ "gitHead": "228fe25e1a17f248d566bce1c33d11c291955513"
63
60
  }