@fy-stack/app-construct 0.0.147-alpha.30694 → 0.0.147-alpha.30696

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 +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;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,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,kBAA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AC,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"}
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const aws_cdk_lib_1 = require("aws-cdk-lib");
6
6
  const aws_cloudfront_1 = require("aws-cdk-lib/aws-cloudfront");
7
7
  const aws_cloudfront_origins_1 = require("aws-cdk-lib/aws-cloudfront-origins");
8
+ const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
8
9
  const ecr = tslib_1.__importStar(require("aws-cdk-lib/aws-ecr"));
9
10
  const aws_ecr_assets_1 = require("aws-cdk-lib/aws-ecr-assets");
10
11
  const aws_lambda_1 = require("aws-cdk-lib/aws-lambda");
@@ -33,7 +34,7 @@ class ImageAppConstruct extends constructs_1.Construct {
33
34
  const repository = ecr.Repository.fromRepositoryName(this, 'Repository', params.repository);
34
35
  code = aws_lambda_1.Code.fromEcrImage(repository, {
35
36
  tagOrDigest: params.tag,
36
- cmd: params.cmd,
37
+ cmd: cdk.Fn.split(',', cdk.Fn.join(',', params.cmd)),
37
38
  });
38
39
  }
39
40
  else {
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
6
6
  function codeFromSSM(scope, reference, version = 'latest') {
7
7
  return {
8
- code: ssm.StringParameter.fromStringParameterName(scope, 'CodeFilesKeyParam', `/${reference}/${version}/code`).stringValue,
9
- cmd: ssm.StringParameter.fromStringParameterName(scope, 'CodeCMDParam', `/${reference}/${version}/code/handler`).stringValue,
8
+ code: ssm.StringParameter.fromStringParameterName(scope, `CodeFilesKeyParamV${version}`, `/${reference}/${version}/code`).stringValue,
9
+ cmd: ssm.StringParameter.fromStringParameterName(scope, `CodeCMDParamV${version}`, `/${reference}/${version}/code/handler`).stringValue,
10
10
  };
11
11
  }
@@ -5,8 +5,8 @@ const tslib_1 = require("tslib");
5
5
  const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
6
6
  function containerParamsFromSSM(scope, reference, version = 'latest') {
7
7
  return {
8
- repository: ssm.StringParameter.fromStringParameterName(scope, 'RepositoryName', `/${reference}/${version}/repository`).stringValue,
9
- tag: ssm.StringParameter.fromStringParameterName(scope, 'VersionNumber', `/${reference}/${version}/tag`).stringValue,
10
- cmd: ssm.StringListParameter.fromStringListParameterName(scope, 'ImageCMD', `/${reference}/${version}/cmd`).stringListValue,
8
+ repository: ssm.StringParameter.fromStringParameterName(scope, `RepositoryNameV${version}`, `/${reference}/${version}/repository`).stringValue,
9
+ tag: ssm.StringParameter.fromStringParameterName(scope, `VersionNumberV${version}`, `/${reference}/${version}/tag`).stringValue,
10
+ cmd: ssm.StringListParameter.fromStringListParameterName(scope, `ImageCMDV${version}`, `/${reference}/${version}/cmd`).stringListValue,
11
11
  };
12
12
  }
@@ -12,12 +12,12 @@ const s3Deploy = tslib_1.__importStar(require("aws-cdk-lib/aws-s3-deployment"));
12
12
  const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
13
13
  function filesFromSSM(scope, reference, version = 'latest') {
14
14
  return {
15
- artifact: ssm.StringParameter.fromStringParameterName(scope, 'ArtifactStorageParam', `/${reference}/${version}/artifacts`).stringValue,
15
+ artifact: ssm.StringParameter.fromStringParameterName(scope, `ArtifactStorageParamV${version}`, `/${reference}/${version}/artifacts`).stringValue,
16
16
  publicFiles: {
17
- key: ssm.StringParameter.fromStringParameterName(scope, 'PublicFilesParam', `/${reference}/${version}/files/publicFiles/key`).stringValue,
17
+ key: ssm.StringParameter.fromStringParameterName(scope, `PublicFilesParamV${version}`, `/${reference}/${version}/files/publicFiles/key`).stringValue,
18
18
  },
19
19
  staticFiles: {
20
- key: ssm.StringParameter.fromStringParameterName(scope, 'StaticFilesParam', `/${reference}/${version}/files/staticFiles/key`).stringValue,
20
+ key: ssm.StringParameter.fromStringParameterName(scope, `StaticFilesParamV${version}`, `/${reference}/${version}/files/staticFiles/key`).stringValue,
21
21
  },
22
22
  };
23
23
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@fy-stack/app-construct",
3
- "version": "0.0.147-alpha.30694",
3
+ "version": "0.0.147-alpha.30696",
4
4
  "repository": "https://github.com/festusyuma/fy-stack",
5
5
  "dependencies": {
6
- "@fy-stack/types": "0.0.147-alpha.30694",
6
+ "@fy-stack/types": "0.0.147-alpha.30696",
7
7
  "tslib": "^2.3.0",
8
8
  "zod": "^4.3.6"
9
9
  },