@fy-stack/app-construct 0.0.147-alpha.30698 → 0.0.147-alpha.30699
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/lambda/apps/image-app-construct.d.ts.map +1 -1
- package/dist/lib/lambda/apps/image-app-construct.js +2 -3
- package/dist/lib/shared/container-from-param.d.ts +1 -1
- package/dist/lib/shared/container-from-param.js +1 -1
- package/dist/lib/standalone/image-app-container.js +2 -2
- package/package.json +2 -2
|
@@ -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;AAKpC,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;AAGxB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAMvD,QAAA,MAAM,iBAAiB;;;;iBAErB,CAAC;AAEH,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,CAA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vC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;IAIvD,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO;;;;;;;CAG7B"}
|
|
@@ -33,14 +33,13 @@ class ImageAppConstruct extends constructs_1.Construct {
|
|
|
33
33
|
const params = (0, container_from_param_1.containerParamsFromSSM)(this, props.reference, props.version);
|
|
34
34
|
const repository = ecr.Repository.fromRepositoryName(this, 'Repository', params.repository);
|
|
35
35
|
console.log({
|
|
36
|
-
paramsMap: params.cmd.map((p) => p),
|
|
37
36
|
paramsToken: cdk.Token.asList(params.cmd),
|
|
38
|
-
paramsSplit: cdk.Fn.split(',',
|
|
37
|
+
paramsSplit: cdk.Fn.split(',', params.cmd),
|
|
39
38
|
params: params.cmd,
|
|
40
39
|
});
|
|
41
40
|
code = aws_lambda_1.Code.fromEcrImage(repository, {
|
|
42
41
|
tagOrDigest: params.tag,
|
|
43
|
-
cmd: params.cmd
|
|
42
|
+
cmd: cdk.Token.asList(params.cmd),
|
|
44
43
|
});
|
|
45
44
|
}
|
|
46
45
|
else {
|
|
@@ -2,6 +2,6 @@ import { Construct } from 'constructs';
|
|
|
2
2
|
export declare function containerParamsFromSSM(scope: Construct, reference: string, version?: string): {
|
|
3
3
|
repository: string;
|
|
4
4
|
tag: string;
|
|
5
|
-
cmd: string
|
|
5
|
+
cmd: string;
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=container-from-param.d.ts.map
|
|
@@ -7,6 +7,6 @@ function containerParamsFromSSM(scope, reference, version = 'latest') {
|
|
|
7
7
|
return {
|
|
8
8
|
repository: ssm.StringParameter.fromStringParameterName(scope, `RepositoryNameV${version}`, `/${reference}/${version}/repository`).stringValue,
|
|
9
9
|
tag: ssm.StringParameter.fromStringParameterName(scope, `VersionNumberV${version}`, `/${reference}/${version}/tag`).stringValue,
|
|
10
|
-
cmd: ssm.
|
|
10
|
+
cmd: ssm.StringParameter.fromStringParameterName(scope, `ImageCMDV${version}`, `/${reference}/${version}/cmd`).stringValue,
|
|
11
11
|
};
|
|
12
12
|
}
|
|
@@ -34,9 +34,9 @@ class ImageAppContainer extends constructs_1.Construct {
|
|
|
34
34
|
}), new ssm.StringParameter(this, `TagParamV${v}`, {
|
|
35
35
|
parameterName: `/${stackName}/${v}/tag`,
|
|
36
36
|
stringValue: props.version,
|
|
37
|
-
}), new ssm.
|
|
37
|
+
}), new ssm.StringParameter(this, `ImageCMDV${v}`, {
|
|
38
38
|
parameterName: `/${stackName}/${v}/cmd`,
|
|
39
|
-
|
|
39
|
+
stringValue: JSON.stringify(props.cmd),
|
|
40
40
|
}));
|
|
41
41
|
}
|
|
42
42
|
for (const p of parameters) {
|
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.30699",
|
|
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.30699",
|
|
7
7
|
"tslib": "^2.3.0",
|
|
8
8
|
"zod": "^4.3.6"
|
|
9
9
|
},
|