@fy-stack/app-construct 0.0.147-alpha.3062 → 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.
|
@@ -23,7 +23,7 @@ class NextAppRouterConstruct extends constructs_1.Construct {
|
|
|
23
23
|
this.files = deployment.files;
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
|
-
const repository = ssm.StringParameter.fromStringParameterName(scope, 'Repository',
|
|
26
|
+
const repository = ssm.StringParameter.fromStringParameterName(scope, 'Repository', `/${props.reference}/repository`).stringValue;
|
|
27
27
|
this.static = s3.Bucket.fromBucketName(this, 'StaticBucket', repository);
|
|
28
28
|
this.files = (0, next_app_router_1.filesFromSSm)(this, props.reference);
|
|
29
29
|
}
|
|
@@ -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 containerParamsFromSSM(scope, reference) {
|
|
7
7
|
return {
|
|
8
|
-
repository: ssm.StringParameter.fromStringParameterName(scope, 'RepositoryName',
|
|
9
|
-
tag: ssm.StringParameter.fromStringParameterName(scope, 'VersionNumber',
|
|
8
|
+
repository: ssm.StringParameter.fromStringParameterName(scope, 'RepositoryName', `/${reference}/repository`).stringValue,
|
|
9
|
+
tag: ssm.StringParameter.fromStringParameterName(scope, 'VersionNumber', `/${reference}/tag`).stringValue,
|
|
10
10
|
};
|
|
11
11
|
}
|
|
@@ -14,10 +14,10 @@ const ssm = tslib_1.__importStar(require("aws-cdk-lib/aws-ssm"));
|
|
|
14
14
|
function filesFromSSm(scope, reference) {
|
|
15
15
|
return {
|
|
16
16
|
publicFiles: {
|
|
17
|
-
key: ssm.StringParameter.fromStringParameterName(scope, 'PublicFiles',
|
|
17
|
+
key: ssm.StringParameter.fromStringParameterName(scope, 'PublicFiles', `/${reference}/files/publicFiles/key`).stringValue,
|
|
18
18
|
},
|
|
19
19
|
staticFiles: {
|
|
20
|
-
key: ssm.StringParameter.fromStringParameterName(scope, 'StaticFiles',
|
|
20
|
+
key: ssm.StringParameter.fromStringParameterName(scope, 'StaticFiles', `/${reference}/files/staticFiles/key`).stringValue,
|
|
21
21
|
},
|
|
22
22
|
};
|
|
23
23
|
}
|
|
@@ -26,11 +26,11 @@ class ImageAppContainer extends constructs_1.Construct {
|
|
|
26
26
|
dest: new ecrDeployment.DockerImageName(cdk.Fn.join(':', [repo.repositoryUri, props.version])),
|
|
27
27
|
});
|
|
28
28
|
new ssm.StringParameter(this, 'RepositoryParam', {
|
|
29
|
-
parameterName:
|
|
29
|
+
parameterName: `/${stackName}/repository`,
|
|
30
30
|
stringValue: repo.repositoryName,
|
|
31
31
|
});
|
|
32
32
|
new ssm.StringParameter(this, 'TagParam', {
|
|
33
|
-
parameterName:
|
|
33
|
+
parameterName: `/${stackName}/tag`,
|
|
34
34
|
stringValue: props.version,
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -28,19 +28,19 @@ class NextAppRouterContainer extends constructs_1.Construct {
|
|
|
28
28
|
dest: new ecrDeployment.DockerImageName(cdk.Fn.join(':', [repo.repositoryUri, props.version])),
|
|
29
29
|
});
|
|
30
30
|
new ssm.StringParameter(this, 'RepositoryParam', {
|
|
31
|
-
parameterName:
|
|
31
|
+
parameterName: `/${stackName}/repository`,
|
|
32
32
|
stringValue: repo.repositoryName,
|
|
33
33
|
});
|
|
34
34
|
new ssm.StringParameter(this, 'TagParam', {
|
|
35
|
-
parameterName:
|
|
35
|
+
parameterName: `/${stackName}/tag`,
|
|
36
36
|
stringValue: props.version,
|
|
37
37
|
});
|
|
38
38
|
new ssm.StringParameter(this, 'StaticFilesKeyParam', {
|
|
39
|
-
parameterName:
|
|
39
|
+
parameterName: `/${stackName}/files/staticFiles/key`,
|
|
40
40
|
stringValue: deployment.files.staticFiles.key,
|
|
41
41
|
});
|
|
42
42
|
new ssm.StringParameter(this, 'PublicFilesKeyParam', {
|
|
43
|
-
parameterName:
|
|
43
|
+
parameterName: `/${stackName}/files/publicFiles/key`,
|
|
44
44
|
stringValue: deployment.files.publicFiles.key,
|
|
45
45
|
});
|
|
46
46
|
}
|
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
|
},
|