@@ -180,7 +180,7 @@ Resources:
180
180
Configuration :
181
181
ActionMode : CREATE_UPDATE
182
182
Capabilities : CAPABILITY_IAM,CAPABILITY_AUTO_EXPAND,CAPABILITY_NAMED_IAM
183
- StackName : SmokeTest
183
+ StackName : TestAccountExecution
184
184
RoleArn : !GetAtt [CloudFormationDeployerRole, Arn]
185
185
TemplateConfiguration : !If [DeployManagement, 'Tests::deploy/management.json', !If [DeployDelegated, 'Tests::deploy/delegated.json', 'Tests::deploy/nondelegated.json']]
186
186
TemplatePath : !Sub 'Tests::deploy/stack.yml'
@@ -200,7 +200,7 @@ Resources:
200
200
ProjectName : !Ref CodeBuildSmokeLambda
201
201
PrimarySource : Tests
202
202
OutputArtifacts :
203
- - Name : SmokeLambda
203
+ - Name : AccountExecutionLambda
204
204
InputArtifacts :
205
205
- Name : Tests
206
206
- Name : CLI
@@ -229,7 +229,7 @@ Resources:
229
229
Configuration :
230
230
FunctionName : SSOSyncFunction
231
231
OutputArtifacts :
232
- - Name : SmokeCodePipeline
232
+ - Name : AccountExecutionCodePipeline
233
233
InputArtifacts :
234
234
- Name : Tests
235
235
- !Ref AWS::NoValue
@@ -243,7 +243,7 @@ Resources:
243
243
Provider : CloudFormation
244
244
Configuration :
245
245
ActionMode : DELETE_ONLY
246
- StackName : SmokeTest
246
+ StackName : TestAccountExecution
247
247
RoleArn : !GetAtt [CloudFormationDeployerRole, Arn]
248
248
InputArtifacts :
249
249
- Name : Tests
@@ -289,10 +289,10 @@ Resources:
289
289
Configuration :
290
290
ActionMode : CREATE_UPDATE
291
291
Capabilities : CAPABILITY_IAM,CAPABILITY_AUTO_EXPAND,CAPABILITY_NAMED_IAM
292
- StackName : SmokeTest
292
+ StackName : TestCrossAccountSecrets
293
293
RoleArn : !GetAtt [CloudFormationDeployerRole, Arn]
294
294
TemplateConfiguration : ' Tests::deploy/cross_account_secrets.json'
295
- TemplatePath : !Sub 'Tests::deploy/cross_account_secrets.. yml'
295
+ TemplatePath : !Sub 'Tests::deploy/cross_account_secrets.yml'
296
296
InputArtifacts :
297
297
- Name : Tests
298
298
RunOrder : 1
@@ -336,13 +336,274 @@ Resources:
336
336
Provider : CloudFormation
337
337
Configuration :
338
338
ActionMode : DELETE_ONLY
339
- StackName : SmokeTest
339
+ StackName : TestCrossAccountSecrets
340
340
RoleArn : !GetAtt [CloudFormationDeployerRole, Arn]
341
341
InputArtifacts :
342
342
- Name : Tests
343
343
RunOrder : 1
344
344
345
+ CodePipelineCrossAccountApp :
346
+ Type : AWS::CodePipeline::Pipeline
347
+ Condition : DeployDelegated
348
+ Properties :
349
+ Name : SSOSync-CrossAccountApp
350
+ RoleArn : !Sub ${CodePipelineRole.Arn}
351
+ ArtifactStore :
352
+ Type : S3
353
+ Location : !Ref ArtifactBucket
354
+ EncryptionKey :
355
+ Type : KMS
356
+ Id : !GetAtt ArtifactBucketKey.Arn
357
+ Stages :
358
+ - Name : Source
359
+ Actions :
360
+ - Name : Tests
361
+ Namespace : Test
362
+ ActionTypeId :
363
+ Category : Source
364
+ Owner : AWS
365
+ Version : 1
366
+ Provider : S3
367
+ OutputArtifacts :
368
+ - Name : Tests
369
+ RunOrder : ' 1'
370
+ Configuration :
371
+ S3Bucket : !Ref StagingBucket
372
+ S3ObjectKey : tests.zip
373
+ PollForSourceChanges : false
374
+ - Name : Deploy
375
+ Actions :
376
+ - Name : Deploy
377
+ ActionTypeId :
378
+ Category : Deploy
379
+ Owner : AWS
380
+ Version : ' 1'
381
+ Provider : CloudFormation
382
+ Configuration :
383
+ ActionMode : CREATE_UPDATE
384
+ Capabilities : CAPABILITY_IAM,CAPABILITY_AUTO_EXPAND,CAPABILITY_NAMED_IAM
385
+ StackName : TestCrossAccountApp
386
+ RoleArn : !GetAtt [CloudFormationDeployerRole, Arn]
387
+ TemplateConfiguration : ' Tests::deploy/crossaccountapp.json'
388
+ TemplatePath : !Sub 'Tests::deploy/crossaccountapp.yml'
389
+ InputArtifacts :
390
+ - Name : Tests
391
+ RunOrder : 1
392
+ - Name : Execute
393
+ Actions :
394
+ - Name : Run-Test
395
+ ActionTypeId :
396
+ Category : Invoke
397
+ Owner : AWS
398
+ Version : 1
399
+ Provider : Lambda
400
+ RunOrder : 3
401
+ Configuration :
402
+ FunctionName : SSOSyncFunction
403
+ OutputArtifacts :
404
+ - Name : ExecuteSingleStack
405
+ InputArtifacts :
406
+ - Name : Tests
407
+ - Name : CleanUp
408
+ Actions :
409
+ - Name : RemoveStack
410
+ ActionTypeId :
411
+ Category : Deploy
412
+ Owner : AWS
413
+ Version : 1
414
+ Provider : CloudFormation
415
+ Configuration :
416
+ ActionMode : DELETE_ONLY
417
+ StackName : TestCrossAccountApp
418
+ RoleArn : !GetAtt [CloudFormationDeployerRole, Arn]
419
+ InputArtifacts :
420
+ - Name : Tests
421
+ RunOrder : 1
422
+
423
+ CodePipelineSingleStack :
424
+ Type : AWS::CodePipeline::Pipeline
425
+ Condition : DeployDelegated
426
+ Properties :
427
+ Name : SSOSync-SingleStack
428
+ RoleArn : !Sub ${CodePipelineRole.Arn}
429
+ ArtifactStore :
430
+ Type : S3
431
+ Location : !Ref ArtifactBucket
432
+ EncryptionKey :
433
+ Type : KMS
434
+ Id : !GetAtt ArtifactBucketKey.Arn
435
+ Stages :
436
+ - Name : Source
437
+ Actions :
438
+ - Name : Tests
439
+ Namespace : Test
440
+ ActionTypeId :
441
+ Category : Source
442
+ Owner : AWS
443
+ Version : 1
444
+ Provider : S3
445
+ OutputArtifacts :
446
+ - Name : Tests
447
+ RunOrder : ' 1'
448
+ Configuration :
449
+ S3Bucket : !Ref StagingBucket
450
+ S3ObjectKey : tests.zip
451
+ PollForSourceChanges : false
452
+ - Name : Deploy
453
+ Actions :
454
+ - Name : Deploy
455
+ ActionTypeId :
456
+ Category : Deploy
457
+ Owner : AWS
458
+ Version : ' 1'
459
+ Provider : CloudFormation
460
+ Configuration :
461
+ ActionMode : CREATE_UPDATE
462
+ Capabilities : CAPABILITY_IAM,CAPABILITY_AUTO_EXPAND,CAPABILITY_NAMED_IAM
463
+ StackName : TestSingleStack
464
+ RoleArn : !GetAtt [CloudFormationDeployerRole, Arn]
465
+ TemplateConfiguration : ' Tests::deploy/singlestack.json'
466
+ TemplatePath : !Sub 'Tests::deploy/singlestack.yml'
467
+ InputArtifacts :
468
+ - Name : Tests
469
+ RunOrder : 1
470
+ - Name : Execute
471
+ Actions :
472
+ - Name : Run-Test
473
+ ActionTypeId :
474
+ Category : Invoke
475
+ Owner : AWS
476
+ Version : 1
477
+ Provider : Lambda
478
+ RunOrder : 3
479
+ Configuration :
480
+ FunctionName : SSOSyncFunction
481
+ OutputArtifacts :
482
+ - Name : ExecuteSingleStack
483
+ InputArtifacts :
484
+ - Name : Tests
485
+ - Name : CleanUp
486
+ Actions :
487
+ - Name : RemoveStack
488
+ ActionTypeId :
489
+ Category : Deploy
490
+ Owner : AWS
491
+ Version : 1
492
+ Provider : CloudFormation
493
+ Configuration :
494
+ ActionMode : DELETE_ONLY
495
+ StackName : TestSingleStack
496
+ RoleArn : !GetAtt [CloudFormationDeployerRole, Arn]
497
+ InputArtifacts :
498
+ - Name : Tests
499
+ RunOrder : 1
345
500
501
+ CodePipelineSplitStack :
502
+ Type : AWS::CodePipeline::Pipeline
503
+ Condition : DeployDelegated
504
+ Properties :
505
+ Name : SSOSync-SplitStack
506
+ RoleArn : !Sub ${CodePipelineRole.Arn}
507
+ ArtifactStore :
508
+ Type : S3
509
+ Location : !Ref ArtifactBucket
510
+ EncryptionKey :
511
+ Type : KMS
512
+ Id : !GetAtt ArtifactBucketKey.Arn
513
+ Stages :
514
+ - Name : Source
515
+ Actions :
516
+ - Name : Tests
517
+ Namespace : Test
518
+ ActionTypeId :
519
+ Category : Source
520
+ Owner : AWS
521
+ Version : 1
522
+ Provider : S3
523
+ OutputArtifacts :
524
+ - Name : Tests
525
+ RunOrder : ' 1'
526
+ Configuration :
527
+ S3Bucket : !Ref StagingBucket
528
+ S3ObjectKey : tests.zip
529
+ PollForSourceChanges : false
530
+ - Name : Deploy
531
+ Actions :
532
+ - Name : DeploySecrets
533
+ ActionTypeId :
534
+ Category : Deploy
535
+ Owner : AWS
536
+ Version : ' 1'
537
+ Provider : CloudFormation
538
+ Configuration :
539
+ ActionMode : CREATE_UPDATE
540
+ Capabilities : CAPABILITY_IAM,CAPABILITY_AUTO_EXPAND,CAPABILITY_NAMED_IAM
541
+ StackName : TestSecretsOnly
542
+ RoleArn : !GetAtt [CloudFormationDeployerRole, Arn]
543
+ TemplateConfiguration : ' Tests::deploy/secretsonly.json'
544
+ TemplatePath : !Sub 'Tests::deploy/secretsonly.yml'
545
+ InputArtifacts :
546
+ - Name : Tests
547
+ RunOrder : 1
548
+ - Name : DeployApp
549
+ ActionTypeId :
550
+ Category : Deploy
551
+ Owner : AWS
552
+ Version : ' 1'
553
+ Provider : CloudFormation
554
+ Configuration :
555
+ ActionMode : CREATE_UPDATE
556
+ Capabilities : CAPABILITY_IAM,CAPABILITY_AUTO_EXPAND,CAPABILITY_NAMED_IAM
557
+ StackName : TestAppOnly
558
+ RoleArn : !GetAtt [CloudFormationDeployerRole, Arn]
559
+ TemplateConfiguration : ' Tests::deploy/secretsonly.json'
560
+ TemplatePath : !Sub 'Tests::deploy/secretsonly.yml'
561
+ InputArtifacts :
562
+ - Name : Tests
563
+ RunOrder : 2
564
+ - Name : Execute
565
+ Actions :
566
+ - Name : CodePipeline
567
+ ActionTypeId :
568
+ Category : Invoke
569
+ Owner : AWS
570
+ Version : 1
571
+ Provider : Lambda
572
+ RunOrder : 3
573
+ Configuration :
574
+ FunctionName : SSOSyncFunction
575
+ OutputArtifacts :
576
+ - Name : SmokeCodePipeline
577
+ InputArtifacts :
578
+ - Name : Tests
579
+ - Name : CleanUp
580
+ Actions :
581
+ - Name : RemoveSecrets
582
+ ActionTypeId :
583
+ Category : Deploy
584
+ Owner : AWS
585
+ Version : 1
586
+ Provider : CloudFormation
587
+ Configuration :
588
+ ActionMode : DELETE_ONLY
589
+ StackName : TestSecretsOnly
590
+ RoleArn : !GetAtt [CloudFormationDeployerRole, Arn]
591
+ InputArtifacts :
592
+ - Name : Tests
593
+ RunOrder : 1
594
+ - Name : RemoveApp
595
+ ActionTypeId :
596
+ Category : Deploy
597
+ Owner : AWS
598
+ Version : 1
599
+ Provider : CloudFormation
600
+ Configuration :
601
+ ActionMode : DELETE_ONLY
602
+ StackName : TestAppOnly
603
+ RoleArn : !GetAtt [CloudFormationDeployerRole, Arn]
604
+ InputArtifacts :
605
+ - Name : Tests
606
+ RunOrder : 2
346
607
347
608
CodeBuildSmokeCLI :
348
609
Type : AWS::CodeBuild::Project
0 commit comments