@@ -44,15 +44,15 @@ export class IacStack extends ros.Stack {
4444 new ros . RosMapping ( this , 'stages' , { mapping : replaceReference ( iac . stages , context ) } ) ;
4545 }
4646
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` ) ;
5248
5349 const fileSources = iac . functions
5450 . 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+ } ) ;
5656
5757 let destinationBucket : oss . Bucket ;
5858 if ( fileSources . length > 0 ) {
@@ -61,7 +61,7 @@ export class IacStack extends ros.Stack {
6161 this ,
6262 replaceReference ( `${ this . service } _artifacts_bucket` , context ) ,
6363 {
64- bucketName : replaceReference ( `${ this . service } -artifacts-bucket` , context ) ,
64+ bucketName : `${ this . service } -artifacts-bucket` ,
6565 serverSideEncryptionConfiguration : { sseAlgorithm : 'KMS' } ,
6666 } ,
6767 true ,
0 commit comments