@@ -220,6 +220,9 @@ export class AcceleratorPipeline extends Construct {
220
220
let pipelineName = `${ props . prefixes . accelerator } -Pipeline` ;
221
221
let buildProjectName = `${ props . prefixes . accelerator } -BuildProject` ;
222
222
let toolkitProjectName = `${ props . prefixes . accelerator } -ToolkitProject` ;
223
+ this . diffS3Uri = `s3://${ this . props . prefixes . bucketName } -pipeline-${ cdk . Stack . of ( this ) . account } -${
224
+ cdk . Stack . of ( this ) . region
225
+ } /AWSAccelerator-Pipel/Diffs`;
223
226
224
227
//
225
228
// Change the fields when qualifier is present
@@ -233,6 +236,9 @@ export class AcceleratorPipeline extends Construct {
233
236
pipelineName = `${ this . props . qualifier } -pipeline` ;
234
237
buildProjectName = `${ this . props . qualifier } -build-project` ;
235
238
toolkitProjectName = `${ this . props . qualifier } -toolkit-project` ;
239
+ this . diffS3Uri = `s3://${ this . props . qualifier } -pipeline-${ cdk . Stack . of ( this ) . account } -${
240
+ cdk . Stack . of ( this ) . region
241
+ } /AWSAccelerator-Pipel/Diffs`;
236
242
}
237
243
238
244
let nodeEnvVariables : { [ p : string ] : codebuild . BuildEnvironmentVariable } | undefined ;
@@ -581,14 +587,11 @@ export class AcceleratorPipeline extends Construct {
581
587
} ) ;
582
588
583
589
/**
584
- * Toolkit CodeBuild poroject is used to run all Accelerator stages, including diff
590
+ * Toolkit CodeBuild project is used to run all Accelerator stages, including diff
585
591
* First it executes synth of all Pipeline stages and then diff within the same container.
586
592
* CloudFormation templates are then reused for all further stages
587
- * Diff files are uploaded to pipeline S3 bucket
593
+ * Diff files are uploaded to pipeline S3 bucket - consideration needed if running in external account
588
594
*/
589
- this . diffS3Uri = `s3://${ this . props . prefixes . bucketName } -pipeline-${ cdk . Stack . of ( this ) . account } -${
590
- cdk . Stack . of ( this ) . region
591
- } /AWSAccelerator-Pipel/Diffs`;
592
595
593
596
this . toolkitProject = new codebuild . PipelineProject ( this , 'ToolkitProject' , {
594
597
projectName : toolkitProjectName ,
0 commit comments