@cdklabs/cdk-cicd-wrapper 2.1.0 → 2.3.0
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.
- package/.jsii +127 -48
- package/API.md +77 -1
- package/lib/app/DeploymentPipelineApp.js +1 -1
- package/lib/app/PipelineApp.js +1 -1
- package/lib/appconfig/accessor.js +1 -1
- package/lib/config/build-image.js +1 -1
- package/lib/config/define.d.ts +6 -0
- package/lib/config/define.js +13 -2
- package/lib/config/repository.d.ts +24 -2
- package/lib/config/repository.js +10 -6
- package/lib/config/types.d.ts +12 -0
- package/lib/config/types.js +1 -1
- package/lib/engine/cdkpipelines/CdkPipelinesEngine.d.ts +18 -1
- package/lib/engine/cdkpipelines/CdkPipelinesEngine.js +68 -4
- package/lib/engine/codepipeline/CodePipelineEngine.js +17 -4
- package/lib/engine/codepipeline/DeploymentPipeline.js +1 -1
- package/lib/engine/codepipeline/source.d.ts +10 -1
- package/lib/engine/codepipeline/source.js +17 -2
- package/lib/engine/github/GitHubActionsEngine.js +13 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/runtime/attach.js +1 -1
- package/lib/support/AccessLogsForBucketAspect.js +1 -1
- package/lib/support/DestroyEncryptionKeysOnDeleteAspect.js +1 -1
- package/lib/support/DisablePublicIPAssignmentForEC2Aspect.js +1 -1
- package/lib/support/EncryptBucketOnTransitAspect.js +1 -1
- package/lib/support/EncryptCloudWatchLogGroupsAspect.js +1 -1
- package/lib/support/EncryptSNSTopicOnTransitAspect.js +1 -1
- package/lib/support/LambdaDLQAspect.js +1 -1
- package/lib/support/LogRetentionAspect.js +1 -1
- package/lib/support/RotateEncryptionKeysAspect.js +1 -1
- package/lib/support/SupportResources.js +1 -1
- package/package.json +1 -1
package/.jsii
CHANGED
|
@@ -4839,7 +4839,7 @@
|
|
|
4839
4839
|
},
|
|
4840
4840
|
"locationInModule": {
|
|
4841
4841
|
"filename": "src/engine/cdkpipelines/CdkPipelinesEngine.ts",
|
|
4842
|
-
"line":
|
|
4842
|
+
"line": 98
|
|
4843
4843
|
},
|
|
4844
4844
|
"parameters": [
|
|
4845
4845
|
{
|
|
@@ -4865,7 +4865,7 @@
|
|
|
4865
4865
|
"kind": "class",
|
|
4866
4866
|
"locationInModule": {
|
|
4867
4867
|
"filename": "src/engine/cdkpipelines/CdkPipelinesEngine.ts",
|
|
4868
|
-
"line":
|
|
4868
|
+
"line": 95
|
|
4869
4869
|
},
|
|
4870
4870
|
"name": "CdkPipelinesEngine",
|
|
4871
4871
|
"properties": [
|
|
@@ -4876,7 +4876,7 @@
|
|
|
4876
4876
|
"immutable": true,
|
|
4877
4877
|
"locationInModule": {
|
|
4878
4878
|
"filename": "src/engine/cdkpipelines/CdkPipelinesEngine.ts",
|
|
4879
|
-
"line":
|
|
4879
|
+
"line": 96
|
|
4880
4880
|
},
|
|
4881
4881
|
"name": "pipeline",
|
|
4882
4882
|
"type": {
|
|
@@ -5203,6 +5203,43 @@
|
|
|
5203
5203
|
],
|
|
5204
5204
|
"symbolId": "src/config/types:CodeArtifactConfig"
|
|
5205
5205
|
},
|
|
5206
|
+
"@cdklabs/cdk-cicd-wrapper.CodeCommitSourceOptions": {
|
|
5207
|
+
"assembly": "@cdklabs/cdk-cicd-wrapper",
|
|
5208
|
+
"datatype": true,
|
|
5209
|
+
"docs": {
|
|
5210
|
+
"stability": "experimental",
|
|
5211
|
+
"summary": "Options for a CodeCommit source."
|
|
5212
|
+
},
|
|
5213
|
+
"fqn": "@cdklabs/cdk-cicd-wrapper.CodeCommitSourceOptions",
|
|
5214
|
+
"kind": "interface",
|
|
5215
|
+
"locationInModule": {
|
|
5216
|
+
"filename": "src/config/repository.ts",
|
|
5217
|
+
"line": 18
|
|
5218
|
+
},
|
|
5219
|
+
"name": "CodeCommitSourceOptions",
|
|
5220
|
+
"properties": [
|
|
5221
|
+
{
|
|
5222
|
+
"abstract": true,
|
|
5223
|
+
"docs": {
|
|
5224
|
+
"default": "false",
|
|
5225
|
+
"remarks": "When `false` (the default), the pipeline **creates** the CodeCommit repository as part of its own\nstack -- matching the Blueprint (0.x) behaviour, where naming a CodeCommit source provisioned the\nrepository for you. When `true`, the repository must already exist and the pipeline only imports\nit by name.",
|
|
5226
|
+
"stability": "experimental",
|
|
5227
|
+
"summary": "Whether the CodeCommit repository already exists."
|
|
5228
|
+
},
|
|
5229
|
+
"immutable": true,
|
|
5230
|
+
"locationInModule": {
|
|
5231
|
+
"filename": "src/config/repository.ts",
|
|
5232
|
+
"line": 29
|
|
5233
|
+
},
|
|
5234
|
+
"name": "existing",
|
|
5235
|
+
"optional": true,
|
|
5236
|
+
"type": {
|
|
5237
|
+
"primitive": "boolean"
|
|
5238
|
+
}
|
|
5239
|
+
}
|
|
5240
|
+
],
|
|
5241
|
+
"symbolId": "src/config/repository:CodeCommitSourceOptions"
|
|
5242
|
+
},
|
|
5206
5243
|
"@cdklabs/cdk-cicd-wrapper.CodePipelineEngine": {
|
|
5207
5244
|
"assembly": "@cdklabs/cdk-cicd-wrapper",
|
|
5208
5245
|
"docs": {
|
|
@@ -5216,7 +5253,7 @@
|
|
|
5216
5253
|
},
|
|
5217
5254
|
"locationInModule": {
|
|
5218
5255
|
"filename": "src/engine/codepipeline/CodePipelineEngine.ts",
|
|
5219
|
-
"line":
|
|
5256
|
+
"line": 95
|
|
5220
5257
|
},
|
|
5221
5258
|
"parameters": [
|
|
5222
5259
|
{
|
|
@@ -5234,7 +5271,7 @@
|
|
|
5234
5271
|
"kind": "class",
|
|
5235
5272
|
"locationInModule": {
|
|
5236
5273
|
"filename": "src/engine/codepipeline/CodePipelineEngine.ts",
|
|
5237
|
-
"line":
|
|
5274
|
+
"line": 91
|
|
5238
5275
|
},
|
|
5239
5276
|
"methods": [
|
|
5240
5277
|
{
|
|
@@ -5245,7 +5282,7 @@
|
|
|
5245
5282
|
},
|
|
5246
5283
|
"locationInModule": {
|
|
5247
5284
|
"filename": "src/engine/codepipeline/CodePipelineEngine.ts",
|
|
5248
|
-
"line":
|
|
5285
|
+
"line": 100
|
|
5249
5286
|
},
|
|
5250
5287
|
"name": "render",
|
|
5251
5288
|
"overrides": "@cdklabs/cdk-cicd-wrapper.IEngine",
|
|
@@ -5279,7 +5316,7 @@
|
|
|
5279
5316
|
"kind": "interface",
|
|
5280
5317
|
"locationInModule": {
|
|
5281
5318
|
"filename": "src/engine/codepipeline/CodePipelineEngine.ts",
|
|
5282
|
-
"line":
|
|
5319
|
+
"line": 80
|
|
5283
5320
|
},
|
|
5284
5321
|
"name": "CodePipelineEngineProps",
|
|
5285
5322
|
"properties": [
|
|
@@ -5293,7 +5330,7 @@
|
|
|
5293
5330
|
"immutable": true,
|
|
5294
5331
|
"locationInModule": {
|
|
5295
5332
|
"filename": "src/engine/codepipeline/CodePipelineEngine.ts",
|
|
5296
|
-
"line":
|
|
5333
|
+
"line": 82
|
|
5297
5334
|
},
|
|
5298
5335
|
"name": "buildImage",
|
|
5299
5336
|
"optional": true,
|
|
@@ -5311,7 +5348,7 @@
|
|
|
5311
5348
|
"immutable": true,
|
|
5312
5349
|
"locationInModule": {
|
|
5313
5350
|
"filename": "src/engine/codepipeline/CodePipelineEngine.ts",
|
|
5314
|
-
"line":
|
|
5351
|
+
"line": 87
|
|
5315
5352
|
},
|
|
5316
5353
|
"name": "removalPolicy",
|
|
5317
5354
|
"optional": true,
|
|
@@ -6555,7 +6592,7 @@
|
|
|
6555
6592
|
},
|
|
6556
6593
|
"locationInModule": {
|
|
6557
6594
|
"filename": "src/engine/github/GitHubActionsEngine.ts",
|
|
6558
|
-
"line":
|
|
6595
|
+
"line": 63
|
|
6559
6596
|
},
|
|
6560
6597
|
"parameters": [
|
|
6561
6598
|
{
|
|
@@ -6581,7 +6618,7 @@
|
|
|
6581
6618
|
"kind": "class",
|
|
6582
6619
|
"locationInModule": {
|
|
6583
6620
|
"filename": "src/engine/github/GitHubActionsEngine.ts",
|
|
6584
|
-
"line":
|
|
6621
|
+
"line": 59
|
|
6585
6622
|
},
|
|
6586
6623
|
"name": "GitHubActionsEngine",
|
|
6587
6624
|
"properties": [
|
|
@@ -6592,7 +6629,7 @@
|
|
|
6592
6629
|
"immutable": true,
|
|
6593
6630
|
"locationInModule": {
|
|
6594
6631
|
"filename": "src/engine/github/GitHubActionsEngine.ts",
|
|
6595
|
-
"line":
|
|
6632
|
+
"line": 61
|
|
6596
6633
|
},
|
|
6597
6634
|
"name": "gitHubActionRole",
|
|
6598
6635
|
"type": {
|
|
@@ -6606,7 +6643,7 @@
|
|
|
6606
6643
|
"immutable": true,
|
|
6607
6644
|
"locationInModule": {
|
|
6608
6645
|
"filename": "src/engine/github/GitHubActionsEngine.ts",
|
|
6609
|
-
"line":
|
|
6646
|
+
"line": 60
|
|
6610
6647
|
},
|
|
6611
6648
|
"name": "pipeline",
|
|
6612
6649
|
"type": {
|
|
@@ -6627,7 +6664,7 @@
|
|
|
6627
6664
|
"kind": "interface",
|
|
6628
6665
|
"locationInModule": {
|
|
6629
6666
|
"filename": "src/engine/github/GitHubActionsEngine.ts",
|
|
6630
|
-
"line":
|
|
6667
|
+
"line": 39
|
|
6631
6668
|
},
|
|
6632
6669
|
"name": "GitHubActionsEngineProps",
|
|
6633
6670
|
"properties": [
|
|
@@ -6641,7 +6678,7 @@
|
|
|
6641
6678
|
"immutable": true,
|
|
6642
6679
|
"locationInModule": {
|
|
6643
6680
|
"filename": "src/engine/github/GitHubActionsEngine.ts",
|
|
6644
|
-
"line":
|
|
6681
|
+
"line": 41
|
|
6645
6682
|
},
|
|
6646
6683
|
"name": "config",
|
|
6647
6684
|
"type": {
|
|
@@ -6657,7 +6694,7 @@
|
|
|
6657
6694
|
"immutable": true,
|
|
6658
6695
|
"locationInModule": {
|
|
6659
6696
|
"filename": "src/engine/github/GitHubActionsEngine.ts",
|
|
6660
|
-
"line":
|
|
6697
|
+
"line": 43
|
|
6661
6698
|
},
|
|
6662
6699
|
"name": "stages",
|
|
6663
6700
|
"type": {
|
|
@@ -6673,7 +6710,7 @@
|
|
|
6673
6710
|
"immutable": true,
|
|
6674
6711
|
"locationInModule": {
|
|
6675
6712
|
"filename": "src/engine/github/GitHubActionsEngine.ts",
|
|
6676
|
-
"line":
|
|
6713
|
+
"line": 49
|
|
6677
6714
|
},
|
|
6678
6715
|
"name": "pipelineName",
|
|
6679
6716
|
"optional": true,
|
|
@@ -7650,17 +7687,18 @@
|
|
|
7650
7687
|
"kind": "class",
|
|
7651
7688
|
"locationInModule": {
|
|
7652
7689
|
"filename": "src/config/repository.ts",
|
|
7653
|
-
"line":
|
|
7690
|
+
"line": 37
|
|
7654
7691
|
},
|
|
7655
7692
|
"methods": [
|
|
7656
7693
|
{
|
|
7657
7694
|
"docs": {
|
|
7695
|
+
"remarks": "By default the pipeline **creates** the repository (Blueprint\nparity); pass `{ existing: true }` to import a repository that already exists instead.",
|
|
7658
7696
|
"stability": "experimental",
|
|
7659
7697
|
"summary": "An AWS CodeCommit repository by name."
|
|
7660
7698
|
},
|
|
7661
7699
|
"locationInModule": {
|
|
7662
7700
|
"filename": "src/config/repository.ts",
|
|
7663
|
-
"line":
|
|
7701
|
+
"line": 47
|
|
7664
7702
|
},
|
|
7665
7703
|
"name": "codecommit",
|
|
7666
7704
|
"parameters": [
|
|
@@ -7676,6 +7714,13 @@
|
|
|
7676
7714
|
"type": {
|
|
7677
7715
|
"primitive": "string"
|
|
7678
7716
|
}
|
|
7717
|
+
},
|
|
7718
|
+
{
|
|
7719
|
+
"name": "options",
|
|
7720
|
+
"optional": true,
|
|
7721
|
+
"type": {
|
|
7722
|
+
"fqn": "@cdklabs/cdk-cicd-wrapper.CodeCommitSourceOptions"
|
|
7723
|
+
}
|
|
7679
7724
|
}
|
|
7680
7725
|
],
|
|
7681
7726
|
"returns": {
|
|
@@ -7692,7 +7737,7 @@
|
|
|
7692
7737
|
},
|
|
7693
7738
|
"locationInModule": {
|
|
7694
7739
|
"filename": "src/config/repository.ts",
|
|
7695
|
-
"line":
|
|
7740
|
+
"line": 52
|
|
7696
7741
|
},
|
|
7697
7742
|
"name": "codestarConnection",
|
|
7698
7743
|
"parameters": [
|
|
@@ -7730,7 +7775,7 @@
|
|
|
7730
7775
|
},
|
|
7731
7776
|
"locationInModule": {
|
|
7732
7777
|
"filename": "src/config/repository.ts",
|
|
7733
|
-
"line":
|
|
7778
|
+
"line": 39
|
|
7734
7779
|
},
|
|
7735
7780
|
"name": "github",
|
|
7736
7781
|
"parameters": [
|
|
@@ -7762,7 +7807,7 @@
|
|
|
7762
7807
|
},
|
|
7763
7808
|
"locationInModule": {
|
|
7764
7809
|
"filename": "src/config/repository.ts",
|
|
7765
|
-
"line":
|
|
7810
|
+
"line": 57
|
|
7766
7811
|
},
|
|
7767
7812
|
"name": "s3",
|
|
7768
7813
|
"parameters": [
|
|
@@ -7799,7 +7844,7 @@
|
|
|
7799
7844
|
"immutable": true,
|
|
7800
7845
|
"locationInModule": {
|
|
7801
7846
|
"filename": "src/config/repository.ts",
|
|
7802
|
-
"line":
|
|
7847
|
+
"line": 66
|
|
7803
7848
|
},
|
|
7804
7849
|
"name": "branch",
|
|
7805
7850
|
"type": {
|
|
@@ -7814,7 +7859,7 @@
|
|
|
7814
7859
|
"immutable": true,
|
|
7815
7860
|
"locationInModule": {
|
|
7816
7861
|
"filename": "src/config/repository.ts",
|
|
7817
|
-
"line":
|
|
7862
|
+
"line": 64
|
|
7818
7863
|
},
|
|
7819
7864
|
"name": "name",
|
|
7820
7865
|
"type": {
|
|
@@ -7829,7 +7874,7 @@
|
|
|
7829
7874
|
"immutable": true,
|
|
7830
7875
|
"locationInModule": {
|
|
7831
7876
|
"filename": "src/config/repository.ts",
|
|
7832
|
-
"line":
|
|
7877
|
+
"line": 62
|
|
7833
7878
|
},
|
|
7834
7879
|
"name": "repositoryType",
|
|
7835
7880
|
"type": {
|
|
@@ -7844,13 +7889,30 @@
|
|
|
7844
7889
|
"immutable": true,
|
|
7845
7890
|
"locationInModule": {
|
|
7846
7891
|
"filename": "src/config/repository.ts",
|
|
7847
|
-
"line":
|
|
7892
|
+
"line": 68
|
|
7848
7893
|
},
|
|
7849
7894
|
"name": "connectionArn",
|
|
7850
7895
|
"optional": true,
|
|
7851
7896
|
"type": {
|
|
7852
7897
|
"primitive": "string"
|
|
7853
7898
|
}
|
|
7899
|
+
},
|
|
7900
|
+
{
|
|
7901
|
+
"docs": {
|
|
7902
|
+
"remarks": "When `false` the\npipeline creates it. Unset for non-CodeCommit sources.",
|
|
7903
|
+
"stability": "experimental",
|
|
7904
|
+
"summary": "For a CodeCommit source, whether the repository already exists (import-only)."
|
|
7905
|
+
},
|
|
7906
|
+
"immutable": true,
|
|
7907
|
+
"locationInModule": {
|
|
7908
|
+
"filename": "src/config/repository.ts",
|
|
7909
|
+
"line": 73
|
|
7910
|
+
},
|
|
7911
|
+
"name": "existing",
|
|
7912
|
+
"optional": true,
|
|
7913
|
+
"type": {
|
|
7914
|
+
"primitive": "boolean"
|
|
7915
|
+
}
|
|
7854
7916
|
}
|
|
7855
7917
|
],
|
|
7856
7918
|
"symbolId": "src/config/repository:Repository"
|
|
@@ -7976,7 +8038,7 @@
|
|
|
7976
8038
|
"immutable": true,
|
|
7977
8039
|
"locationInModule": {
|
|
7978
8040
|
"filename": "src/config/types.ts",
|
|
7979
|
-
"line":
|
|
8041
|
+
"line": 427
|
|
7980
8042
|
},
|
|
7981
8043
|
"name": "asyncDeploy",
|
|
7982
8044
|
"type": {
|
|
@@ -8009,7 +8071,7 @@
|
|
|
8009
8071
|
"immutable": true,
|
|
8010
8072
|
"locationInModule": {
|
|
8011
8073
|
"filename": "src/config/types.ts",
|
|
8012
|
-
"line":
|
|
8074
|
+
"line": 412
|
|
8013
8075
|
},
|
|
8014
8076
|
"name": "deployModel",
|
|
8015
8077
|
"type": {
|
|
@@ -8130,7 +8192,7 @@
|
|
|
8130
8192
|
"immutable": true,
|
|
8131
8193
|
"locationInModule": {
|
|
8132
8194
|
"filename": "src/config/types.ts",
|
|
8133
|
-
"line":
|
|
8195
|
+
"line": 410
|
|
8134
8196
|
},
|
|
8135
8197
|
"name": "codeBuildEnvSettings",
|
|
8136
8198
|
"optional": true,
|
|
@@ -8166,7 +8228,7 @@
|
|
|
8166
8228
|
"immutable": true,
|
|
8167
8229
|
"locationInModule": {
|
|
8168
8230
|
"filename": "src/config/types.ts",
|
|
8169
|
-
"line":
|
|
8231
|
+
"line": 400
|
|
8170
8232
|
},
|
|
8171
8233
|
"name": "complianceLogBucketName",
|
|
8172
8234
|
"optional": true,
|
|
@@ -8184,7 +8246,7 @@
|
|
|
8184
8246
|
"immutable": true,
|
|
8185
8247
|
"locationInModule": {
|
|
8186
8248
|
"filename": "src/config/types.ts",
|
|
8187
|
-
"line":
|
|
8249
|
+
"line": 418
|
|
8188
8250
|
},
|
|
8189
8251
|
"name": "deployerImage",
|
|
8190
8252
|
"optional": true,
|
|
@@ -8220,7 +8282,7 @@
|
|
|
8220
8282
|
"immutable": true,
|
|
8221
8283
|
"locationInModule": {
|
|
8222
8284
|
"filename": "src/config/types.ts",
|
|
8223
|
-
"line":
|
|
8285
|
+
"line": 437
|
|
8224
8286
|
},
|
|
8225
8287
|
"name": "express",
|
|
8226
8288
|
"optional": true,
|
|
@@ -8310,7 +8372,7 @@
|
|
|
8310
8372
|
"immutable": true,
|
|
8311
8373
|
"locationInModule": {
|
|
8312
8374
|
"filename": "src/config/types.ts",
|
|
8313
|
-
"line":
|
|
8375
|
+
"line": 444
|
|
8314
8376
|
},
|
|
8315
8377
|
"name": "plugins",
|
|
8316
8378
|
"optional": true,
|
|
@@ -8366,13 +8428,30 @@
|
|
|
8366
8428
|
"immutable": true,
|
|
8367
8429
|
"locationInModule": {
|
|
8368
8430
|
"filename": "src/config/types.ts",
|
|
8369
|
-
"line":
|
|
8431
|
+
"line": 394
|
|
8370
8432
|
},
|
|
8371
8433
|
"name": "vpc",
|
|
8372
8434
|
"optional": true,
|
|
8373
8435
|
"type": {
|
|
8374
8436
|
"fqn": "@cdklabs/cdk-cicd-wrapper.VpcConfig"
|
|
8375
8437
|
}
|
|
8438
|
+
},
|
|
8439
|
+
{
|
|
8440
|
+
"abstract": true,
|
|
8441
|
+
"docs": {
|
|
8442
|
+
"stability": "experimental",
|
|
8443
|
+
"summary": "Export per-stage account env vars on a self-mutating engine's synth step: before `cdk synth`, scan SSM Parameter Store under the pipeline's qualifier (`/<qualifier>/`) and export an `ACCOUNT_<STAGE>` env var for every parameter whose name contains `Account` (e.g. `/<qualifier>/AccountDev` -> `ACCOUNT_DEV`). This lets a `cdk.config.ts` that reads `process.env.ACCOUNT_<STAGE>` resolve target accounts at synth time from the values the bootstrap wrote to SSM. Off by default; only read by the self-mutating engines (`CDK_PIPELINES`, `GITHUB_ACTIONS`), whose synth step is the one that re-runs `cdk synth` under the pipeline. When on, the synth step is also granted `ssm:GetParametersByPath` on `/<qualifier>/*`, and fails loud if it finds no `Account*` parameter (a misconfigured qualifier is a hard error, not a silently-empty scan)."
|
|
8444
|
+
},
|
|
8445
|
+
"immutable": true,
|
|
8446
|
+
"locationInModule": {
|
|
8447
|
+
"filename": "src/config/types.ts",
|
|
8448
|
+
"line": 392
|
|
8449
|
+
},
|
|
8450
|
+
"name": "warmAccountsFromSsm",
|
|
8451
|
+
"optional": true,
|
|
8452
|
+
"type": {
|
|
8453
|
+
"primitive": "boolean"
|
|
8454
|
+
}
|
|
8376
8455
|
}
|
|
8377
8456
|
],
|
|
8378
8457
|
"symbolId": "src/config/types:ResolvedCicdConfig"
|
|
@@ -8389,7 +8468,7 @@
|
|
|
8389
8468
|
"kind": "interface",
|
|
8390
8469
|
"locationInModule": {
|
|
8391
8470
|
"filename": "src/config/types.ts",
|
|
8392
|
-
"line":
|
|
8471
|
+
"line": 475
|
|
8393
8472
|
},
|
|
8394
8473
|
"name": "ResolvedDeploymentConfig",
|
|
8395
8474
|
"properties": [
|
|
@@ -8402,7 +8481,7 @@
|
|
|
8402
8481
|
"immutable": true,
|
|
8403
8482
|
"locationInModule": {
|
|
8404
8483
|
"filename": "src/config/types.ts",
|
|
8405
|
-
"line":
|
|
8484
|
+
"line": 483
|
|
8406
8485
|
},
|
|
8407
8486
|
"name": "targets",
|
|
8408
8487
|
"type": {
|
|
@@ -8424,7 +8503,7 @@
|
|
|
8424
8503
|
"immutable": true,
|
|
8425
8504
|
"locationInModule": {
|
|
8426
8505
|
"filename": "src/config/types.ts",
|
|
8427
|
-
"line":
|
|
8506
|
+
"line": 495
|
|
8428
8507
|
},
|
|
8429
8508
|
"name": "codeArtifact",
|
|
8430
8509
|
"optional": true,
|
|
@@ -8442,7 +8521,7 @@
|
|
|
8442
8521
|
"immutable": true,
|
|
8443
8522
|
"locationInModule": {
|
|
8444
8523
|
"filename": "src/config/types.ts",
|
|
8445
|
-
"line":
|
|
8524
|
+
"line": 481
|
|
8446
8525
|
},
|
|
8447
8526
|
"name": "image",
|
|
8448
8527
|
"optional": true,
|
|
@@ -8460,7 +8539,7 @@
|
|
|
8460
8539
|
"immutable": true,
|
|
8461
8540
|
"locationInModule": {
|
|
8462
8541
|
"filename": "src/config/types.ts",
|
|
8463
|
-
"line":
|
|
8542
|
+
"line": 500
|
|
8464
8543
|
},
|
|
8465
8544
|
"name": "npmRegistry",
|
|
8466
8545
|
"optional": true,
|
|
@@ -8477,7 +8556,7 @@
|
|
|
8477
8556
|
"immutable": true,
|
|
8478
8557
|
"locationInModule": {
|
|
8479
8558
|
"filename": "src/config/types.ts",
|
|
8480
|
-
"line":
|
|
8559
|
+
"line": 490
|
|
8481
8560
|
},
|
|
8482
8561
|
"name": "repository",
|
|
8483
8562
|
"optional": true,
|
|
@@ -8500,7 +8579,7 @@
|
|
|
8500
8579
|
"kind": "interface",
|
|
8501
8580
|
"locationInModule": {
|
|
8502
8581
|
"filename": "src/config/types.ts",
|
|
8503
|
-
"line":
|
|
8582
|
+
"line": 453
|
|
8504
8583
|
},
|
|
8505
8584
|
"name": "ResolvedDeploymentTarget",
|
|
8506
8585
|
"properties": [
|
|
@@ -8513,7 +8592,7 @@
|
|
|
8513
8592
|
"immutable": true,
|
|
8514
8593
|
"locationInModule": {
|
|
8515
8594
|
"filename": "src/config/types.ts",
|
|
8516
|
-
"line":
|
|
8595
|
+
"line": 457
|
|
8517
8596
|
},
|
|
8518
8597
|
"name": "env",
|
|
8519
8598
|
"type": {
|
|
@@ -8529,7 +8608,7 @@
|
|
|
8529
8608
|
"immutable": true,
|
|
8530
8609
|
"locationInModule": {
|
|
8531
8610
|
"filename": "src/config/types.ts",
|
|
8532
|
-
"line":
|
|
8611
|
+
"line": 459
|
|
8533
8612
|
},
|
|
8534
8613
|
"name": "manualApproval",
|
|
8535
8614
|
"type": {
|
|
@@ -8545,7 +8624,7 @@
|
|
|
8545
8624
|
"immutable": true,
|
|
8546
8625
|
"locationInModule": {
|
|
8547
8626
|
"filename": "src/config/types.ts",
|
|
8548
|
-
"line":
|
|
8627
|
+
"line": 455
|
|
8549
8628
|
},
|
|
8550
8629
|
"name": "stage",
|
|
8551
8630
|
"type": {
|
|
@@ -8561,7 +8640,7 @@
|
|
|
8561
8640
|
"immutable": true,
|
|
8562
8641
|
"locationInModule": {
|
|
8563
8642
|
"filename": "src/config/types.ts",
|
|
8564
|
-
"line":
|
|
8643
|
+
"line": 461
|
|
8565
8644
|
},
|
|
8566
8645
|
"name": "deployment",
|
|
8567
8646
|
"optional": true,
|
|
@@ -8579,7 +8658,7 @@
|
|
|
8579
8658
|
"immutable": true,
|
|
8580
8659
|
"locationInModule": {
|
|
8581
8660
|
"filename": "src/config/types.ts",
|
|
8582
|
-
"line":
|
|
8661
|
+
"line": 467
|
|
8583
8662
|
},
|
|
8584
8663
|
"name": "image",
|
|
8585
8664
|
"optional": true,
|
|
@@ -9262,6 +9341,6 @@
|
|
|
9262
9341
|
"symbolId": "src/support/Vpc:VpcNetworking"
|
|
9263
9342
|
}
|
|
9264
9343
|
},
|
|
9265
|
-
"version": "2.
|
|
9266
|
-
"fingerprint": "
|
|
9344
|
+
"version": "2.3.0",
|
|
9345
|
+
"fingerprint": "efgTtPGqB5/e8ii/kiNIWLTJ6SJ6bgcs3bbfRSFbMho="
|
|
9267
9346
|
}
|
package/API.md
CHANGED
|
@@ -1934,6 +1934,44 @@ Defaults to the pipeline's own region.
|
|
|
1934
1934
|
|
|
1935
1935
|
---
|
|
1936
1936
|
|
|
1937
|
+
### CodeCommitSourceOptions <a name="CodeCommitSourceOptions" id="@cdklabs/cdk-cicd-wrapper.CodeCommitSourceOptions"></a>
|
|
1938
|
+
|
|
1939
|
+
Options for a CodeCommit source.
|
|
1940
|
+
|
|
1941
|
+
#### Initializer <a name="Initializer" id="@cdklabs/cdk-cicd-wrapper.CodeCommitSourceOptions.Initializer"></a>
|
|
1942
|
+
|
|
1943
|
+
```typescript
|
|
1944
|
+
import { CodeCommitSourceOptions } from '@cdklabs/cdk-cicd-wrapper'
|
|
1945
|
+
|
|
1946
|
+
const codeCommitSourceOptions: CodeCommitSourceOptions = { ... }
|
|
1947
|
+
```
|
|
1948
|
+
|
|
1949
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
1950
|
+
|
|
1951
|
+
| **Name** | **Type** | **Description** |
|
|
1952
|
+
| --- | --- | --- |
|
|
1953
|
+
| <code><a href="#@cdklabs/cdk-cicd-wrapper.CodeCommitSourceOptions.property.existing">existing</a></code> | <code>boolean</code> | Whether the CodeCommit repository already exists. |
|
|
1954
|
+
|
|
1955
|
+
---
|
|
1956
|
+
|
|
1957
|
+
##### `existing`<sup>Optional</sup> <a name="existing" id="@cdklabs/cdk-cicd-wrapper.CodeCommitSourceOptions.property.existing"></a>
|
|
1958
|
+
|
|
1959
|
+
```typescript
|
|
1960
|
+
public readonly existing: boolean;
|
|
1961
|
+
```
|
|
1962
|
+
|
|
1963
|
+
- *Type:* boolean
|
|
1964
|
+
- *Default:* false
|
|
1965
|
+
|
|
1966
|
+
Whether the CodeCommit repository already exists.
|
|
1967
|
+
|
|
1968
|
+
When `false` (the default), the pipeline **creates** the CodeCommit repository as part of its own
|
|
1969
|
+
stack -- matching the Blueprint (0.x) behaviour, where naming a CodeCommit source provisioned the
|
|
1970
|
+
repository for you. When `true`, the repository must already exist and the pipeline only imports
|
|
1971
|
+
it by name.
|
|
1972
|
+
|
|
1973
|
+
---
|
|
1974
|
+
|
|
1937
1975
|
### CodePipelineEngineProps <a name="CodePipelineEngineProps" id="@cdklabs/cdk-cicd-wrapper.CodePipelineEngineProps"></a>
|
|
1938
1976
|
|
|
1939
1977
|
Options for the CodePipeline engine.
|
|
@@ -3275,6 +3313,7 @@ const resolvedCicdConfig: ResolvedCicdConfig = { ... }
|
|
|
3275
3313
|
| <code><a href="#@cdklabs/cdk-cicd-wrapper.ResolvedCicdConfig.property.proxy">proxy</a></code> | <code><a href="#@cdklabs/cdk-cicd-wrapper.ProxyConfig">ProxyConfig</a></code> | HTTP(S) proxy every build project routes through, if any. |
|
|
3276
3314
|
| <code><a href="#@cdklabs/cdk-cicd-wrapper.ResolvedCicdConfig.property.qualifier">qualifier</a></code> | <code>string</code> | Bootstrap qualifier (≤10 chars), derived from `application` when not given. |
|
|
3277
3315
|
| <code><a href="#@cdklabs/cdk-cicd-wrapper.ResolvedCicdConfig.property.vpc">vpc</a></code> | <code><a href="#@cdklabs/cdk-cicd-wrapper.VpcConfig">VpcConfig</a></code> | VPC every CodeBuild project the pipeline creates runs in, if configured (Blueprint `VPCProvider`, migrated). |
|
|
3316
|
+
| <code><a href="#@cdklabs/cdk-cicd-wrapper.ResolvedCicdConfig.property.warmAccountsFromSsm">warmAccountsFromSsm</a></code> | <code>boolean</code> | Export per-stage account env vars on a self-mutating engine's synth step: before `cdk synth`, scan SSM Parameter Store under the pipeline's qualifier (`/<qualifier>/`) and export an `ACCOUNT_<STAGE>` env var for every parameter whose name contains `Account` (e.g. `/<qualifier>/AccountDev` -> `ACCOUNT_DEV`). This lets a `cdk.config.ts` that reads `process.env.ACCOUNT_<STAGE>` resolve target accounts at synth time from the values the bootstrap wrote to SSM. Off by default; only read by the self-mutating engines (`CDK_PIPELINES`, `GITHUB_ACTIONS`), whose synth step is the one that re-runs `cdk synth` under the pipeline. When on, the synth step is also granted `ssm:GetParametersByPath` on `/<qualifier>/*`, and fails loud if it finds no `Account*` parameter (a misconfigured qualifier is a hard error, not a silently-empty scan). |
|
|
3278
3317
|
|
|
3279
3318
|
---
|
|
3280
3319
|
|
|
@@ -3599,6 +3638,18 @@ VPC every CodeBuild project the pipeline creates runs in, if configured (Bluepri
|
|
|
3599
3638
|
|
|
3600
3639
|
---
|
|
3601
3640
|
|
|
3641
|
+
##### `warmAccountsFromSsm`<sup>Optional</sup> <a name="warmAccountsFromSsm" id="@cdklabs/cdk-cicd-wrapper.ResolvedCicdConfig.property.warmAccountsFromSsm"></a>
|
|
3642
|
+
|
|
3643
|
+
```typescript
|
|
3644
|
+
public readonly warmAccountsFromSsm: boolean;
|
|
3645
|
+
```
|
|
3646
|
+
|
|
3647
|
+
- *Type:* boolean
|
|
3648
|
+
|
|
3649
|
+
Export per-stage account env vars on a self-mutating engine's synth step: before `cdk synth`, scan SSM Parameter Store under the pipeline's qualifier (`/<qualifier>/`) and export an `ACCOUNT_<STAGE>` env var for every parameter whose name contains `Account` (e.g. `/<qualifier>/AccountDev` -> `ACCOUNT_DEV`). This lets a `cdk.config.ts` that reads `process.env.ACCOUNT_<STAGE>` resolve target accounts at synth time from the values the bootstrap wrote to SSM. Off by default; only read by the self-mutating engines (`CDK_PIPELINES`, `GITHUB_ACTIONS`), whose synth step is the one that re-runs `cdk synth` under the pipeline. When on, the synth step is also granted `ssm:GetParametersByPath` on `/<qualifier>/*`, and fails loud if it finds no `Account*` parameter (a misconfigured qualifier is a hard error, not a silently-empty scan).
|
|
3650
|
+
|
|
3651
|
+
---
|
|
3652
|
+
|
|
3602
3653
|
### ResolvedDeploymentConfig <a name="ResolvedDeploymentConfig" id="@cdklabs/cdk-cicd-wrapper.ResolvedDeploymentConfig"></a>
|
|
3603
3654
|
|
|
3604
3655
|
The fully resolved container-mode deployment configuration `defineDeployment` produces (Repo 2 of the two-repo split).
|
|
@@ -4967,11 +5018,14 @@ cleanly in every jsii language.
|
|
|
4967
5018
|
```typescript
|
|
4968
5019
|
import { Repository } from '@cdklabs/cdk-cicd-wrapper'
|
|
4969
5020
|
|
|
4970
|
-
Repository.codecommit(name: string, branch?: string)
|
|
5021
|
+
Repository.codecommit(name: string, branch?: string, options?: CodeCommitSourceOptions)
|
|
4971
5022
|
```
|
|
4972
5023
|
|
|
4973
5024
|
An AWS CodeCommit repository by name.
|
|
4974
5025
|
|
|
5026
|
+
By default the pipeline **creates** the repository (Blueprint
|
|
5027
|
+
parity); pass `{ existing: true }` to import a repository that already exists instead.
|
|
5028
|
+
|
|
4975
5029
|
###### `name`<sup>Required</sup> <a name="name" id="@cdklabs/cdk-cicd-wrapper.Repository.codecommit.parameter.name"></a>
|
|
4976
5030
|
|
|
4977
5031
|
- *Type:* string
|
|
@@ -4984,6 +5038,12 @@ An AWS CodeCommit repository by name.
|
|
|
4984
5038
|
|
|
4985
5039
|
---
|
|
4986
5040
|
|
|
5041
|
+
###### `options`<sup>Optional</sup> <a name="options" id="@cdklabs/cdk-cicd-wrapper.Repository.codecommit.parameter.options"></a>
|
|
5042
|
+
|
|
5043
|
+
- *Type:* <a href="#@cdklabs/cdk-cicd-wrapper.CodeCommitSourceOptions">CodeCommitSourceOptions</a>
|
|
5044
|
+
|
|
5045
|
+
---
|
|
5046
|
+
|
|
4987
5047
|
##### `codestarConnection` <a name="codestarConnection" id="@cdklabs/cdk-cicd-wrapper.Repository.codestarConnection"></a>
|
|
4988
5048
|
|
|
4989
5049
|
```typescript
|
|
@@ -5064,6 +5124,7 @@ A versioned S3 object (`bucket/key`) as the source.
|
|
|
5064
5124
|
| <code><a href="#@cdklabs/cdk-cicd-wrapper.Repository.property.name">name</a></code> | <code>string</code> | Provider-specific identifier: `owner/repo` for GitHub, the repository/bucket name otherwise. |
|
|
5065
5125
|
| <code><a href="#@cdklabs/cdk-cicd-wrapper.Repository.property.repositoryType">repositoryType</a></code> | <code><a href="#@cdklabs/cdk-cicd-wrapper.RepositorySourceType">RepositorySourceType</a></code> | The kind of source. |
|
|
5066
5126
|
| <code><a href="#@cdklabs/cdk-cicd-wrapper.Repository.property.connectionArn">connectionArn</a></code> | <code>string</code> | The CodeStar/CodeConnections connection ARN, set only for `CODESTAR_CONNECTION`. |
|
|
5127
|
+
| <code><a href="#@cdklabs/cdk-cicd-wrapper.Repository.property.existing">existing</a></code> | <code>boolean</code> | For a CodeCommit source, whether the repository already exists (import-only). |
|
|
5067
5128
|
|
|
5068
5129
|
---
|
|
5069
5130
|
|
|
@@ -5117,6 +5178,21 @@ The CodeStar/CodeConnections connection ARN, set only for `CODESTAR_CONNECTION`.
|
|
|
5117
5178
|
|
|
5118
5179
|
---
|
|
5119
5180
|
|
|
5181
|
+
##### `existing`<sup>Optional</sup> <a name="existing" id="@cdklabs/cdk-cicd-wrapper.Repository.property.existing"></a>
|
|
5182
|
+
|
|
5183
|
+
```typescript
|
|
5184
|
+
public readonly existing: boolean;
|
|
5185
|
+
```
|
|
5186
|
+
|
|
5187
|
+
- *Type:* boolean
|
|
5188
|
+
|
|
5189
|
+
For a CodeCommit source, whether the repository already exists (import-only).
|
|
5190
|
+
|
|
5191
|
+
When `false` the
|
|
5192
|
+
pipeline creates it. Unset for non-CodeCommit sources.
|
|
5193
|
+
|
|
5194
|
+
---
|
|
5195
|
+
|
|
5120
5196
|
|
|
5121
5197
|
### RotateEncryptionKeysAspect <a name="RotateEncryptionKeysAspect" id="@cdklabs/cdk-cicd-wrapper.RotateEncryptionKeysAspect"></a>
|
|
5122
5198
|
|
|
@@ -45,5 +45,5 @@ class DeploymentPipelineApp extends aws_cdk_lib_1.App {
|
|
|
45
45
|
}
|
|
46
46
|
exports.DeploymentPipelineApp = DeploymentPipelineApp;
|
|
47
47
|
_a = JSII_RTTI_SYMBOL_1;
|
|
48
|
-
DeploymentPipelineApp[_a] = { fqn: "@cdklabs/cdk-cicd-wrapper.DeploymentPipelineApp", version: "2.
|
|
48
|
+
DeploymentPipelineApp[_a] = { f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