@@ -44,15 +44,15 @@ export class IacStack extends ros.Stack {
44
44
new ros . RosMapping ( this , 'stages' , { mapping : replaceReference ( iac . stages , context ) } ) ;
45
45
}
46
46
47
- new ros . RosInfo (
48
- this ,
49
- ros . RosInfo . description ,
50
- replaceReference ( `${ this . service } stack` , context ) ,
51
- ) ;
47
+ new ros . RosInfo ( this , ros . RosInfo . description , `${ this . service } stack` ) ;
52
48
53
49
const fileSources = iac . functions
54
50
. filter ( ( { code } ) => readCodeSize ( code ) > CODE_ZIP_SIZE_LIMIT )
55
- . map ( ( { code, name } ) => ( { fcName : name , ...getFileSource ( name , code ) } ) ) ;
51
+ . map ( ( { code, name } ) => {
52
+ const fcName = replaceReference ( name , context ) ;
53
+
54
+ return { fcName, ...getFileSource ( fcName , code ) } ;
55
+ } ) ;
56
56
57
57
let destinationBucket : oss . Bucket ;
58
58
if ( fileSources . length > 0 ) {
@@ -61,7 +61,7 @@ export class IacStack extends ros.Stack {
61
61
this ,
62
62
replaceReference ( `${ this . service } _artifacts_bucket` , context ) ,
63
63
{
64
- bucketName : replaceReference ( `${ this . service } -artifacts-bucket` , context ) ,
64
+ bucketName : `${ this . service } -artifacts-bucket` ,
65
65
serverSideEncryptionConfiguration : { sseAlgorithm : 'KMS' } ,
66
66
} ,
67
67
true ,
0 commit comments