@@ -26,7 +26,11 @@ export async function publishAssets(stacks: CloudFormationStackArtifact[]) {
2626 await buildAndPublishAssets ( deployment , stackArtifact ) ;
2727 results [ stackArtifact . stackName ] = {
2828 isUpdate : cfnStack && cfnStack . StackStatus !== "REVIEW_IN_PROGRESS" ,
29- params : await buildCloudFormationStackParams ( deployment , stackArtifact , cdk ) ,
29+ params : await buildCloudFormationStackParams (
30+ deployment ,
31+ stackArtifact ,
32+ cdk
33+ ) ,
3034 } ;
3135 }
3236 return results ;
@@ -122,7 +126,11 @@ export async function deploy(
122126 await deleteCloudFormationStack ( stack . stackName ) ;
123127 }
124128
125- const stackParams = await buildCloudFormationStackParams ( deployment , stack , cdk ) ;
129+ const stackParams = await buildCloudFormationStackParams (
130+ deployment ,
131+ stack ,
132+ cdk
133+ ) ;
126134 try {
127135 cfnStack && cfnStack . StackStatus !== "REVIEW_IN_PROGRESS"
128136 ? await updateCloudFormationStack ( stackParams )
@@ -305,7 +313,9 @@ async function buildCloudFormationStackParams(
305313 cdkOptions ?: ConfigOptions [ "cdk" ]
306314) {
307315 const env = await deployment . envs . accessStackForMutableStackOperations ( stack ) ;
308- const executionRoleArn = cdkOptions ?. cloudFormationExecutionRole ?? await env . replacePlaceholders ( stack . cloudFormationExecutionRoleArn ) ;
316+ const executionRoleArn =
317+ cdkOptions ?. cloudFormationExecutionRole ??
318+ ( await env . replacePlaceholders ( stack . cloudFormationExecutionRoleArn ) ) ;
309319 const s3Url = stack
310320 . stackTemplateAssetObjectUrl ! . replace (
311321 "${AWS::AccountId}" ,
@@ -342,7 +352,7 @@ async function getCloudFormationStack(stack: CloudFormationStackArtifact) {
342352 const client = useAWSClient ( CloudFormationClient ) ;
343353 try {
344354 const { Stacks : stacks } = await client . send (
345- new DescribeStacksCommand ( {
355+ new DescribeStacksCommand ( {
346356 StackName : stack . stackName ,
347357 } )
348358 ) ;
0 commit comments