@cdklabs/cdk-cicd-wrapper 2.3.2 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/.jsii +758 -196
  2. package/API.md +526 -45
  3. package/README.md +11 -0
  4. package/lib/app/DeploymentPipelineApp.js +7 -3
  5. package/lib/app/PipelineApp.js +12 -4
  6. package/lib/appconfig/accessor.js +1 -1
  7. package/lib/config/build-image.d.ts +17 -1
  8. package/lib/config/build-image.js +57 -3
  9. package/lib/config/default-synthesizer-role-arn.d.ts +38 -0
  10. package/lib/config/default-synthesizer-role-arn.js +63 -0
  11. package/lib/config/define.d.ts +50 -1
  12. package/lib/config/define.js +117 -6
  13. package/lib/config/naming.d.ts +7 -2
  14. package/lib/config/naming.js +9 -9
  15. package/lib/config/repository.js +1 -1
  16. package/lib/config/types.d.ts +123 -11
  17. package/lib/config/types.js +6 -2
  18. package/lib/engine/cdkpipelines/CdkPipelinesEngine.d.ts +6 -0
  19. package/lib/engine/cdkpipelines/CdkPipelinesEngine.js +419 -43
  20. package/lib/engine/codepipeline/CodePipelineEngine.d.ts +22 -15
  21. package/lib/engine/codepipeline/CodePipelineEngine.js +681 -127
  22. package/lib/engine/codepipeline/DeploymentPipeline.d.ts +8 -5
  23. package/lib/engine/codepipeline/DeploymentPipeline.js +937 -72
  24. package/lib/engine/external-id-secrets.d.ts +17 -0
  25. package/lib/engine/external-id-secrets.js +53 -0
  26. package/lib/engine/github/GitHubActionsEngine.d.ts +3 -4
  27. package/lib/engine/github/GitHubActionsEngine.js +446 -34
  28. package/lib/index.d.ts +3 -1
  29. package/lib/index.js +6 -2
  30. package/lib/runtime/attach.js +1 -1
  31. package/lib/runtime/inject.d.ts +41 -3
  32. package/lib/runtime/inject.js +259 -22
  33. package/lib/runtime/pipeline-assembler.d.ts +7 -1
  34. package/lib/runtime/pipeline-assembler.js +144 -36
  35. package/lib/runtime/register.js +10 -1
  36. package/lib/support/AccessLogsForBucketAspect.d.ts +14 -8
  37. package/lib/support/AccessLogsForBucketAspect.js +52 -37
  38. package/lib/support/DestroyEncryptionKeysOnDeleteAspect.js +1 -1
  39. package/lib/support/DisablePublicIPAssignmentForEC2Aspect.js +1 -1
  40. package/lib/support/EncryptBucketOnTransitAspect.js +1 -1
  41. package/lib/support/EncryptCloudWatchLogGroupsAspect.js +1 -1
  42. package/lib/support/EncryptSNSTopicOnTransitAspect.js +1 -1
  43. package/lib/support/LambdaDLQAspect.js +1 -1
  44. package/lib/support/LogRetentionAspect.js +1 -1
  45. package/lib/support/RotateEncryptionKeysAspect.js +1 -1
  46. package/lib/support/SupportResources.d.ts +24 -14
  47. package/lib/support/SupportResources.js +42 -24
  48. package/package.json +5 -4
@@ -12,11 +12,14 @@ export interface DeploymentPipelineProps {
12
12
  readonly buildImage?: string;
13
13
  }
14
14
  /**
15
- * Renders the CD CodePipeline into `scope` (a Stack): Source (the config repo) -> a "Deploy" stage with one
16
- * privileged-CodeBuild action per ungated target (parallel), then a "DeployGated" stage with the gated
17
- * targets, each behind its own manual approval. Each action runs `cdk-cicd deploy --from-image --target
18
- * <stage>` -- pulling that target's own image version, read from deploy.config at run time. The CLI is
19
- * installed from the source repo's `package.json` (`npm ci`), so the config repo carries no CDK code.
15
+ * Renders the CD CodePipeline into `scope` (a Stack): Source (the config repo) followed by ordered
16
+ * deployment stages. Each contiguous run of ungated targets shares one stage and can deploy in parallel.
17
+ * Each gated target has its own stage, with its approval at run order 1 and only that target's deploy
18
+ * action(s) at run order 2, so the gate blocks every later target without reordering the declaration.
19
+ * A sequential target uses one action for all regions; a parallel multi-region target fans out one action
20
+ * per region. Each action runs `cdk-cicd deploy --from-image --target <stage>` -- pulling that target's own
21
+ * image version, read from deploy.config at run time. The CLI is installed from the source repo's
22
+ * `package.json` (`npm ci`), so the config repo carries no CDK code.
20
23
  */
21
24
  export declare class DeploymentPipeline extends Construct {
22
25
  readonly pipeline: codepipeline.Pipeline;