@fy-stack/app-construct 0.0.147-alpha.3061 → 0.0.147-alpha.3063
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.
- package/dist/lib/ecs/apps/next-app-router-construct.d.ts.map +1 -1
- package/dist/lib/ecs/apps/next-app-router-construct.js +4 -12
- package/dist/lib/ecs/shared/taskDefinitionImage.d.ts.map +1 -1
- package/dist/lib/ecs/shared/taskDefinitionImage.js +2 -3
- package/dist/lib/lambda/apps/image-app-construct.d.ts.map +1 -1
- package/dist/lib/lambda/apps/image-app-construct.js +3 -4
- package/dist/lib/shared/container.d.ts +6 -0
- package/dist/lib/shared/container.d.ts.map +1 -0
- package/dist/lib/shared/container.js +11 -0
- package/dist/lib/shared/next-app-router.d.ts +8 -0
- package/dist/lib/shared/next-app-router.d.ts.map +1 -1
- package/dist/lib/shared/next-app-router.js +11 -0
- package/dist/lib/standalone/image-app-container.d.ts.map +1 -1
- package/dist/lib/standalone/image-app-container.js +7 -6
- package/dist/lib/standalone/next-app-router-container.d.ts.map +1 -1
- package/dist/lib/standalone/next-app-router-container.js +15 -14
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-app-router-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/ecs/apps/next-app-router-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"next-app-router-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/ecs/apps/next-app-router-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAG3C,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAUvC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEvD,KAAK,kBAAkB,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;AAEjD,qBAAa,sBAAuB,SAAQ,SAAU,YAAW,YAAY;IAOjC,OAAO,CAAC,KAAK;IANhD,SAAS,EAAE,GAAG,CAAC,mBAAmB,CAAC;IACnC,KAAK,EAAE,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC;IAEpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAU;gBAEpB,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAU,KAAK,EAAE,kBAAkB;IAyB3E,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IAcpE,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAI3C,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAO7C,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;CAG7B"}
|
|
@@ -2,20 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NextAppRouterConstruct = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
|
|
5
6
|
const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
|
|
6
7
|
const constructs_1 = require("constructs");
|
|
7
8
|
const next_app_router_1 = require("../../shared/next-app-router");
|
|
8
9
|
const params_from_attachable_1 = require("../../util/params-from-attachable");
|
|
9
10
|
const taskDefinitionImage_1 = require("../shared/taskDefinitionImage");
|
|
10
|
-
const constants_1 = require("../../util/constants");
|
|
11
|
-
const zod_1 = require("zod");
|
|
12
|
-
const params_from_ssm_1 = require("../../util/params-from-ssm");
|
|
13
|
-
const NextAppRouterContainerAppShema = constants_1.ContainerAppSchema.extend({
|
|
14
|
-
files: zod_1.z.object({
|
|
15
|
-
staticFiles: constants_1.ContainerAppFileSchema,
|
|
16
|
-
publicFiles: constants_1.ContainerAppFileSchema,
|
|
17
|
-
}),
|
|
18
|
-
});
|
|
19
11
|
class NextAppRouterConstruct extends constructs_1.Construct {
|
|
20
12
|
props;
|
|
21
13
|
container;
|
|
@@ -31,9 +23,9 @@ class NextAppRouterConstruct extends constructs_1.Construct {
|
|
|
31
23
|
this.files = deployment.files;
|
|
32
24
|
}
|
|
33
25
|
else {
|
|
34
|
-
const
|
|
35
|
-
this.static = s3.Bucket.fromBucketName(this, 'StaticBucket',
|
|
36
|
-
this.files =
|
|
26
|
+
const repository = ssm.StringParameter.fromStringParameterName(scope, 'Repository', `/${props.reference}/repository`).stringValue;
|
|
27
|
+
this.static = s3.Bucket.fromBucketName(this, 'StaticBucket', repository);
|
|
28
|
+
this.files = (0, next_app_router_1.filesFromSSm)(this, props.reference);
|
|
37
29
|
}
|
|
38
30
|
this.container = (0, taskDefinitionImage_1.taskDefinitionImage)(this, `${props.appName}AppContainer`, props);
|
|
39
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskDefinitionImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/ecs/shared/taskDefinitionImage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"taskDefinitionImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/ecs/shared/taskDefinitionImage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGzD,KAAK,KAAK,GAAG,SAAS,GACpB,IAAI,CAAC,aAAa,EAAE,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,gBAAgB,CAAC,CAAC;AAEtE,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,SAAS,EAChB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,KAAK,2BA4Cb"}
|
|
@@ -6,8 +6,7 @@ const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
|
6
6
|
const ecr = tslib_1.__importStar(require("aws-cdk-lib/aws-ecr"));
|
|
7
7
|
const ecrAssets = tslib_1.__importStar(require("aws-cdk-lib/aws-ecr-assets"));
|
|
8
8
|
const ecs = tslib_1.__importStar(require("aws-cdk-lib/aws-ecs"));
|
|
9
|
-
const
|
|
10
|
-
const constants_1 = require("../../util/constants");
|
|
9
|
+
const container_1 = require("../../shared/container");
|
|
11
10
|
function taskDefinitionImage(scope, id, props) {
|
|
12
11
|
let image;
|
|
13
12
|
let containerProps;
|
|
@@ -24,7 +23,7 @@ function taskDefinitionImage(scope, id, props) {
|
|
|
24
23
|
containerProps = _containerProps;
|
|
25
24
|
}
|
|
26
25
|
else {
|
|
27
|
-
const params = (0,
|
|
26
|
+
const params = (0, container_1.containerParamsFromSSM)(scope, props.reference);
|
|
28
27
|
const repository = ecr.Repository.fromRepositoryName(scope, `${id}Repository`, params.repository);
|
|
29
28
|
image = ecs.ContainerImage.fromEcrRepository(repository, params.tag);
|
|
30
29
|
containerProps = props.container;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-app-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/image-app-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAEL,eAAe,EAKhB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAEL,QAAQ,EAIT,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAK5E,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"image-app-construct.d.ts","sourceRoot":"","sources":["../../../../src/lib/lambda/apps/image-app-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAEL,eAAe,EAKhB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAEL,QAAQ,EAIT,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAK5E,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAOvD,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAUP,CAAC;AAEjB,qBAAa,iBAAkB,SAAQ,SAAU,YAAW,YAAY;IAC/D,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;gBAG9B,KAAK,EAAE,SAAS,EAChB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAoDzD,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,IAAI;IAIpD,KAAK,CAAC,GAAG,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI;IAIvC,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,kBAAkB;IAW1D,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;IAqBzD,gBAAgB,CAAC,cAAc,EAAE,MAAM;IAIvC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAIvD,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;;;;;;;;;;;;CAG7B"}
|
|
@@ -17,8 +17,7 @@ const getDefaultLambda_1 = require("../utils/getDefaultLambda");
|
|
|
17
17
|
const lambda_api_1 = require("../utils/lambda-api");
|
|
18
18
|
const lambda_attach_1 = require("../utils/lambda-attach");
|
|
19
19
|
const lambda_grant_1 = require("../utils/lambda-grant");
|
|
20
|
-
const
|
|
21
|
-
const constants_1 = require("../../util/constants");
|
|
20
|
+
const container_1 = require("../../shared/container");
|
|
22
21
|
const BuildParamsSchema = zod_1.z
|
|
23
22
|
.object({
|
|
24
23
|
container: zod_1.z
|
|
@@ -38,8 +37,8 @@ class ImageAppConstruct extends constructs_1.Construct {
|
|
|
38
37
|
const { container, ...functionProps } = props.buildParams;
|
|
39
38
|
let code;
|
|
40
39
|
if ('reference' in props) {
|
|
41
|
-
const params = (0,
|
|
42
|
-
const repository = ecr.Repository.fromRepositoryName(this, '
|
|
40
|
+
const params = (0, container_1.containerParamsFromSSM)(this, props.reference);
|
|
41
|
+
const repository = ecr.Repository.fromRepositoryName(this, 'RepositoryName', params.repository);
|
|
43
42
|
code = aws_lambda_1.Code.fromEcrImage(repository, {
|
|
44
43
|
tagOrDigest: params.tag,
|
|
45
44
|
cmd: container?.cmd,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/container.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM;;;EAazE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.containerParamsFromSSM = containerParamsFromSSM;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
|
|
6
|
+
function containerParamsFromSSM(scope, reference) {
|
|
7
|
+
return {
|
|
8
|
+
repository: ssm.StringParameter.fromStringParameterName(scope, 'RepositoryName', `/${reference}/repository`).stringValue,
|
|
9
|
+
tag: ssm.StringParameter.fromStringParameterName(scope, 'VersionNumber', `/${reference}/tag`).stringValue,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -13,6 +13,14 @@ export type AppFile = {
|
|
|
13
13
|
key: string;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
+
export declare function filesFromSSm(scope: Construct, reference: string): {
|
|
17
|
+
publicFiles: {
|
|
18
|
+
key: string;
|
|
19
|
+
};
|
|
20
|
+
staticFiles: {
|
|
21
|
+
key: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
16
24
|
export declare function staticDeployment(app: Construct, output: string): {
|
|
17
25
|
staticBucket: cdk.aws_s3.Bucket;
|
|
18
26
|
files: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-app-router.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/next-app-router.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AACnC,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAEzD,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,MAAM,OAAO,GAAG;IACpB,WAAW,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,WAAW,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CACvE,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;EAmE9D;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,SAAS,EACd,YAAY,EAAE,EAAE,CAAC,OAAO,EACxB,YAAY,EAAE,UAAU,CAAC,OAAO,EAChC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,EACd,QAAQ,UAAQ;;EAoGjB"}
|
|
1
|
+
{"version":3,"file":"next-app-router.d.ts","sourceRoot":"","sources":["../../../src/lib/shared/next-app-router.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AACnC,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AAEzD,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,MAAM,OAAO,GAAG;IACpB,WAAW,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,WAAW,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CACvE,CAAC;AAEF,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM;;;;;;;EAiB/D;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;EAmE9D;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,SAAS,EACd,YAAY,EAAE,EAAE,CAAC,OAAO,EACxB,YAAY,EAAE,UAAU,CAAC,OAAO,EAChC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,EACd,QAAQ,UAAQ;;EAoGjB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.filesFromSSm = filesFromSSm;
|
|
3
4
|
exports.staticDeployment = staticDeployment;
|
|
4
5
|
exports.cloudfrontBehaviours = cloudfrontBehaviours;
|
|
5
6
|
const tslib_1 = require("tslib");
|
|
@@ -10,6 +11,16 @@ const cloudfrontOrigin = tslib_1.__importStar(require("aws-cdk-lib/aws-cloudfron
|
|
|
10
11
|
const s3 = tslib_1.__importStar(require("aws-cdk-lib/aws-s3"));
|
|
11
12
|
const s3Deploy = tslib_1.__importStar(require("aws-cdk-lib/aws-s3-deployment"));
|
|
12
13
|
const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
|
|
14
|
+
function filesFromSSm(scope, reference) {
|
|
15
|
+
return {
|
|
16
|
+
publicFiles: {
|
|
17
|
+
key: ssm.StringParameter.fromStringParameterName(scope, 'PublicFiles', `/${reference}/files/publicFiles/key`).stringValue,
|
|
18
|
+
},
|
|
19
|
+
staticFiles: {
|
|
20
|
+
key: ssm.StringParameter.fromStringParameterName(scope, 'StaticFiles', `/${reference}/files/staticFiles/key`).stringValue,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
13
24
|
function staticDeployment(app, output) {
|
|
14
25
|
const staticBucket = new s3.Bucket(app, `StaticBucket`, {
|
|
15
26
|
removalPolicy: cdk.RemovalPolicy.DESTROY,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-app-container.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/image-app-container.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAEhD,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;
|
|
1
|
+
{"version":3,"file":"image-app-container.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/image-app-container.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG,mBAAmB,CAAC;AAEhD,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa;CAiC/D"}
|
|
@@ -25,12 +25,13 @@ class ImageAppContainer extends constructs_1.Construct {
|
|
|
25
25
|
src: new ecrDeployment.DockerImageName(container.imageUri),
|
|
26
26
|
dest: new ecrDeployment.DockerImageName(cdk.Fn.join(':', [repo.repositoryUri, props.version])),
|
|
27
27
|
});
|
|
28
|
-
new ssm.StringParameter(this, '
|
|
29
|
-
parameterName: stackName
|
|
30
|
-
stringValue:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
28
|
+
new ssm.StringParameter(this, 'RepositoryParam', {
|
|
29
|
+
parameterName: `/${stackName}/repository`,
|
|
30
|
+
stringValue: repo.repositoryName,
|
|
31
|
+
});
|
|
32
|
+
new ssm.StringParameter(this, 'TagParam', {
|
|
33
|
+
parameterName: `/${stackName}/tag`,
|
|
34
|
+
stringValue: props.version,
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-app-router-container.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/next-app-router-container.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AAErD,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB;
|
|
1
|
+
{"version":3,"file":"next-app-router-container.d.ts","sourceRoot":"","sources":["../../../src/lib/standalone/next-app-router-container.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AAErD,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB;CA6CpE"}
|
|
@@ -27,20 +27,21 @@ class NextAppRouterContainer extends constructs_1.Construct {
|
|
|
27
27
|
src: new ecrDeployment.DockerImageName(container.imageUri),
|
|
28
28
|
dest: new ecrDeployment.DockerImageName(cdk.Fn.join(':', [repo.repositoryUri, props.version])),
|
|
29
29
|
});
|
|
30
|
-
new ssm.StringParameter(this, '
|
|
31
|
-
parameterName: stackName
|
|
32
|
-
stringValue:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
30
|
+
new ssm.StringParameter(this, 'RepositoryParam', {
|
|
31
|
+
parameterName: `/${stackName}/repository`,
|
|
32
|
+
stringValue: repo.repositoryName,
|
|
33
|
+
});
|
|
34
|
+
new ssm.StringParameter(this, 'TagParam', {
|
|
35
|
+
parameterName: `/${stackName}/tag`,
|
|
36
|
+
stringValue: props.version,
|
|
37
|
+
});
|
|
38
|
+
new ssm.StringParameter(this, 'StaticFilesKeyParam', {
|
|
39
|
+
parameterName: `/${stackName}/files/staticFiles/key`,
|
|
40
|
+
stringValue: deployment.files.staticFiles.key,
|
|
41
|
+
});
|
|
42
|
+
new ssm.StringParameter(this, 'PublicFilesKeyParam', {
|
|
43
|
+
parameterName: `/${stackName}/files/publicFiles/key`,
|
|
44
|
+
stringValue: deployment.files.publicFiles.key,
|
|
44
45
|
});
|
|
45
46
|
}
|
|
46
47
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fy-stack/app-construct",
|
|
3
|
-
"version": "0.0.147-alpha.
|
|
3
|
+
"version": "0.0.147-alpha.3063",
|
|
4
4
|
"repository": "https://github.com/festusyuma/fy-stack",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@fy-stack/types": "0.0.147-alpha.
|
|
6
|
+
"@fy-stack/types": "0.0.147-alpha.3063",
|
|
7
7
|
"tslib": "^2.3.0",
|
|
8
8
|
"zod": "^4.3.6"
|
|
9
9
|
},
|