Skip to content

Commit

Permalink
fix: name resolve issue
Browse files Browse the repository at this point in the history
Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed Dec 3, 2024
1 parent bdca8e1 commit 8c925cf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/stack/iacStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ export class IacStack extends ros.Stack {
new ros.RosMapping(this, 'stages', { mapping: replaceReference(iac.stages, context) });
}

new ros.RosInfo(
this,
ros.RosInfo.description,
replaceReference(`${this.service} stack`, context),
);
new ros.RosInfo(this, ros.RosInfo.description, `${this.service} stack`);

const fileSources = iac.functions
.filter(({ code }) => readCodeSize(code) > CODE_ZIP_SIZE_LIMIT)
.map(({ code, name }) => ({ fcName: name, ...getFileSource(name, code) }));
.map(({ code, name }) => {
const fcName = replaceReference(name, context);

return { fcName, ...getFileSource(fcName, code) };
});

let destinationBucket: oss.Bucket;
if (fileSources.length > 0) {
Expand All @@ -61,7 +61,7 @@ export class IacStack extends ros.Stack {
this,
replaceReference(`${this.service}_artifacts_bucket`, context),
{
bucketName: replaceReference(`${this.service}-artifacts-bucket`, context),
bucketName: `${this.service}-artifacts-bucket`,
serverSideEncryptionConfiguration: { sseAlgorithm: 'KMS' },
},
true,
Expand Down

0 comments on commit 8c925cf

Please sign in to comment.