@cdklabs/cdk-cicd-wrapper 2.4.0 → 2.4.1
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 +2 -2
- 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/repository.js +1 -1
- package/lib/engine/cdkpipelines/CdkPipelinesEngine.js +1 -1
- package/lib/engine/codepipeline/CodePipelineEngine.js +1 -1
- package/lib/engine/codepipeline/DeploymentPipeline.js +1 -1
- package/lib/engine/github/GitHubActionsEngine.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 +2 -2
package/.jsii
CHANGED
|
@@ -9921,6 +9921,6 @@
|
|
|
9921
9921
|
"symbolId": "src/support/Vpc:VpcNetworking"
|
|
9922
9922
|
}
|
|
9923
9923
|
},
|
|
9924
|
-
"version": "2.4.
|
|
9925
|
-
"fingerprint": "
|
|
9924
|
+
"version": "2.4.1",
|
|
9925
|
+
"fingerprint": "/m4AiM/SV6EWAB74udFv6rWRZqKEemKh470C+XBX9XA="
|
|
9926
9926
|
}
|
|
@@ -28,7 +28,7 @@ function pipelineName(config) {
|
|
|
28
28
|
* "which account", the credentials in use.
|
|
29
29
|
*/
|
|
30
30
|
class DeploymentPipelineApp extends aws_cdk_lib_1.App {
|
|
31
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.DeploymentPipelineApp", version: "2.4.
|
|
31
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.DeploymentPipelineApp", version: "2.4.1" };
|
|
32
32
|
/** The stack holding the CD pipeline. Exposed so a test or an opt-in `bin/` can reach it. */
|
|
33
33
|
pipelineStack;
|
|
34
34
|
constructor(props) {
|
package/lib/app/PipelineApp.js
CHANGED
|
@@ -43,7 +43,7 @@ function engineFor(config, disposable) {
|
|
|
43
43
|
* account" is a second place for it to disagree with the credentials actually in use.
|
|
44
44
|
*/
|
|
45
45
|
class PipelineApp extends aws_cdk_lib_1.App {
|
|
46
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.PipelineApp", version: "2.4.
|
|
46
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.PipelineApp", version: "2.4.1" };
|
|
47
47
|
/** The stack holding the pipeline. Exposed so a test or an opt-in `bin/` can reach it. */
|
|
48
48
|
pipelineStack;
|
|
49
49
|
constructor(props) {
|
|
@@ -30,7 +30,7 @@ const validation_1 = require("./validation");
|
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
32
|
class AppConfig {
|
|
33
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.AppConfig", version: "2.4.
|
|
33
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.AppConfig", version: "2.4.1" };
|
|
34
34
|
/** Construct-context key the wrapper writes the resolved stage config under. */
|
|
35
35
|
static CONTEXT_KEY = 'cicd:config';
|
|
36
36
|
/**
|
|
@@ -82,7 +82,7 @@ var BuildImageKind;
|
|
|
82
82
|
* shape a caller writes reads cleanly in every jsii language, mirroring {@link Repository}.
|
|
83
83
|
*/
|
|
84
84
|
class BuildImage {
|
|
85
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.BuildImage", version: "2.4.
|
|
85
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.BuildImage", version: "2.4.1" };
|
|
86
86
|
/** Build and push a Docker deployer image to ECR. */
|
|
87
87
|
static docker(props = {}) {
|
|
88
88
|
return new BuildImage(BuildImageKind.DOCKER, props.dockerfile ?? 'Dockerfile', props.tagStrategy ?? ImageTagStrategy.GIT_SHA, props.repositoryName);
|
package/lib/config/repository.js
CHANGED
|
@@ -23,7 +23,7 @@ var RepositorySourceType;
|
|
|
23
23
|
* cleanly in every jsii language.
|
|
24
24
|
*/
|
|
25
25
|
class Repository {
|
|
26
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.Repository", version: "2.4.
|
|
26
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.Repository", version: "2.4.1" };
|
|
27
27
|
/** GitHub `owner/name`, deployed through a CodeStar connection. */
|
|
28
28
|
static github(name, branch) {
|
|
29
29
|
return new Repository(RepositorySourceType.GITHUB, name, branch);
|
|
@@ -190,7 +190,7 @@ function assertSupportedComplianceLogging(stack, config) {
|
|
|
190
190
|
* gated). Cross-account keys are on (Blueprint default) so multi-account stages work.
|
|
191
191
|
*/
|
|
192
192
|
class CdkPipelinesEngine extends constructs_1.Construct {
|
|
193
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.CdkPipelinesEngine", version: "2.4.
|
|
193
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.CdkPipelinesEngine", version: "2.4.1" };
|
|
194
194
|
pipeline;
|
|
195
195
|
constructor(scope, id, props) {
|
|
196
196
|
super(scope, id);
|
|
@@ -203,7 +203,7 @@ function validateFlatPipelinePartitions(stack, config) {
|
|
|
203
203
|
}
|
|
204
204
|
/** Renders a resolved cicd config into an AWS CodePipeline. */
|
|
205
205
|
class CodePipelineEngine {
|
|
206
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.CodePipelineEngine", version: "2.4.
|
|
206
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.CodePipelineEngine", version: "2.4.1" };
|
|
207
207
|
buildImage;
|
|
208
208
|
removalPolicy;
|
|
209
209
|
constructor(props = {}) {
|
|
@@ -85,7 +85,7 @@ const CODEPIPELINE_IDENTIFIER = /^[A-Za-z0-9.@_-]{1,100}$/;
|
|
|
85
85
|
* `package.json` (`npm ci`), so the config repo carries no CDK code.
|
|
86
86
|
*/
|
|
87
87
|
class DeploymentPipeline extends constructs_1.Construct {
|
|
88
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.DeploymentPipeline", version: "2.4.
|
|
88
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.DeploymentPipeline", version: "2.4.1" };
|
|
89
89
|
pipeline;
|
|
90
90
|
constructor(scope, id, props) {
|
|
91
91
|
super(scope, id);
|
|
@@ -76,7 +76,7 @@ const ci_commands_1 = require("../ci-commands");
|
|
|
76
76
|
* only when config explicitly acknowledges that required reviewers are configured on those environments.
|
|
77
77
|
*/
|
|
78
78
|
class GitHubActionsEngine extends constructs_1.Construct {
|
|
79
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.GitHubActionsEngine", version: "2.4.
|
|
79
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.GitHubActionsEngine", version: "2.4.1" };
|
|
80
80
|
pipeline;
|
|
81
81
|
gitHubActionRole;
|
|
82
82
|
constructor(scope, id, props) {
|
package/lib/runtime/attach.js
CHANGED
|
@@ -19,7 +19,7 @@ const accessor_1 = require("../appconfig/accessor");
|
|
|
19
19
|
* forced roles are threaded in at wave 3).
|
|
20
20
|
*/
|
|
21
21
|
class CdkCicd {
|
|
22
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.CdkCicd", version: "2.4.
|
|
22
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.CdkCicd", version: "2.4.1" };
|
|
23
23
|
/**
|
|
24
24
|
* Apply the wrapper's Aspects and tags to an already-constructed `App`, reading the injected
|
|
25
25
|
* `cicd:config` from its (fully-merged) context. Call it once: it is an alternative to the
|
|
@@ -21,7 +21,7 @@ const aws_s3_1 = require("aws-cdk-lib/aws-s3");
|
|
|
21
21
|
* always wins; an existing user prefix is preserved, otherwise a bucket-specific prefix is generated.
|
|
22
22
|
*/
|
|
23
23
|
class AccessLogsForBucketAspect {
|
|
24
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.AccessLogsForBucketAspect", version: "2.4.
|
|
24
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.AccessLogsForBucketAspect", version: "2.4.1" };
|
|
25
25
|
complianceLogBucketName;
|
|
26
26
|
complianceLogBucketAccount;
|
|
27
27
|
complianceLogBucketRegion;
|
|
@@ -20,7 +20,7 @@ const aws_kms_1 = require("aws-cdk-lib/aws-kms");
|
|
|
20
20
|
* orphaned keys after a stack deletion -- typically non-production stages.
|
|
21
21
|
*/
|
|
22
22
|
class DestroyEncryptionKeysOnDeleteAspect {
|
|
23
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.DestroyEncryptionKeysOnDeleteAspect", version: "2.4.
|
|
23
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.DestroyEncryptionKeysOnDeleteAspect", version: "2.4.1" };
|
|
24
24
|
visit(node) {
|
|
25
25
|
if (node instanceof aws_kms_1.Key) {
|
|
26
26
|
node.applyRemovalPolicy(aws_cdk_lib_1.RemovalPolicy.DESTROY);
|
|
@@ -21,7 +21,7 @@ const SUBNET_RESOURCE_TYPE = 'AWS::EC2::Subnet';
|
|
|
21
21
|
* `DisablePublicIPAssignmentForEC2Plugin`.
|
|
22
22
|
*/
|
|
23
23
|
class DisablePublicIPAssignmentForEC2Aspect {
|
|
24
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.DisablePublicIPAssignmentForEC2Aspect", version: "2.4.
|
|
24
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.DisablePublicIPAssignmentForEC2Aspect", version: "2.4.1" };
|
|
25
25
|
visit(node) {
|
|
26
26
|
if (aws_cdk_lib_1.CfnResource.isCfnResource(node) && node.cfnResourceType === SUBNET_RESOURCE_TYPE) {
|
|
27
27
|
node.mapPublicIpOnLaunch = false;
|
|
@@ -31,7 +31,7 @@ function isL2ResourceOfType(node, cfnResourceType) {
|
|
|
31
31
|
* Blueprint, since the resource policy is applied via `addToResourcePolicy`.
|
|
32
32
|
*/
|
|
33
33
|
class EncryptBucketOnTransitAspect {
|
|
34
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.EncryptBucketOnTransitAspect", version: "2.4.
|
|
34
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.EncryptBucketOnTransitAspect", version: "2.4.1" };
|
|
35
35
|
visit(node) {
|
|
36
36
|
if (isL2ResourceOfType(node, BUCKET_RESOURCE_TYPE)) {
|
|
37
37
|
const bucket = node;
|
|
@@ -26,7 +26,7 @@ const LOG_GROUP_RESOURCE_TYPE = 'AWS::Logs::LogGroup';
|
|
|
26
26
|
* `aws-cdk-lib` (the failure mode `m9-migrate-log-retention` hit against a real deploy).
|
|
27
27
|
*/
|
|
28
28
|
class EncryptCloudWatchLogGroupsAspect {
|
|
29
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.EncryptCloudWatchLogGroupsAspect", version: "2.4.
|
|
29
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.EncryptCloudWatchLogGroupsAspect", version: "2.4.1" };
|
|
30
30
|
encryptionKey;
|
|
31
31
|
constructor(props) {
|
|
32
32
|
this.encryptionKey = props.encryptionKey;
|
|
@@ -30,7 +30,7 @@ function isL2ResourceOfType(node, cfnResourceType) {
|
|
|
30
30
|
* HTTP subscribe/receive, matching Blueprint's default-on `EncryptSNSTopicOnTransitPlugin`.
|
|
31
31
|
*/
|
|
32
32
|
class EncryptSNSTopicOnTransitAspect {
|
|
33
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.EncryptSNSTopicOnTransitAspect", version: "2.4.
|
|
33
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.EncryptSNSTopicOnTransitAspect", version: "2.4.1" };
|
|
34
34
|
visit(node) {
|
|
35
35
|
if (isL2ResourceOfType(node, TOPIC_RESOURCE_TYPE)) {
|
|
36
36
|
const topic = node;
|
|
@@ -9,7 +9,7 @@ const aws_lambda_1 = require("aws-cdk-lib/aws-lambda");
|
|
|
9
9
|
* shared dead-letter queue, matching Blueprint's opt-in `LambdaDLQPlugin`.
|
|
10
10
|
*/
|
|
11
11
|
class LambdaDLQAspect {
|
|
12
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.LambdaDLQAspect", version: "2.4.
|
|
12
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.LambdaDLQAspect", version: "2.4.1" };
|
|
13
13
|
deadLetterQueue;
|
|
14
14
|
constructor(props) {
|
|
15
15
|
this.deadLetterQueue = props.deadLetterQueue;
|
|
@@ -21,7 +21,7 @@ exports.DEFAULT_LOG_RETENTION_DAYS = 365;
|
|
|
21
21
|
* `Aspects.of(scope).add(...)` for a narrower scope.
|
|
22
22
|
*/
|
|
23
23
|
class LogRetentionAspect {
|
|
24
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.LogRetentionAspect", version: "2.4.
|
|
24
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.LogRetentionAspect", version: "2.4.1" };
|
|
25
25
|
retentionInDays;
|
|
26
26
|
constructor(props = {}) {
|
|
27
27
|
this.retentionInDays = props.retentionInDays ?? exports.DEFAULT_LOG_RETENTION_DAYS;
|
|
@@ -20,7 +20,7 @@ const KMS_KEY_RESOURCE_TYPE = 'AWS::KMS::Key';
|
|
|
20
20
|
* `RotateEncryptionKeysPlugin`.
|
|
21
21
|
*/
|
|
22
22
|
class RotateEncryptionKeysAspect {
|
|
23
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.RotateEncryptionKeysAspect", version: "2.4.
|
|
23
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.RotateEncryptionKeysAspect", version: "2.4.1" };
|
|
24
24
|
visit(node) {
|
|
25
25
|
if (aws_cdk_lib_1.CfnResource.isCfnResource(node) && node.cfnResourceType === KMS_KEY_RESOURCE_TYPE) {
|
|
26
26
|
node.enableKeyRotation = true;
|
|
@@ -26,7 +26,7 @@ const Vpc_1 = require("./Vpc");
|
|
|
26
26
|
* nothing to the template.
|
|
27
27
|
*/
|
|
28
28
|
class SupportResources extends constructs_1.Construct {
|
|
29
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.SupportResources", version: "2.4.
|
|
29
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdklabs/cdk-cicd-wrapper.SupportResources", version: "2.4.1" };
|
|
30
30
|
removalPolicy;
|
|
31
31
|
vpcConfig;
|
|
32
32
|
useProxy;
|
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"jest": "^30.5.1",
|
|
60
60
|
"jest-junit": "^17",
|
|
61
61
|
"jsii": "~6.0.0",
|
|
62
|
-
"jsii-diff": "^1.
|
|
62
|
+
"jsii-diff": "^1.142.0",
|
|
63
63
|
"jsii-docgen": "^10.12.7",
|
|
64
64
|
"jsii-pacmak": "^1.140.0",
|
|
65
65
|
"jsii-rosetta": "~6.0.0",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"publishConfig": {
|
|
107
107
|
"access": "public"
|
|
108
108
|
},
|
|
109
|
-
"version": "2.4.
|
|
109
|
+
"version": "2.4.1",
|
|
110
110
|
"jest": {
|
|
111
111
|
"coverageProvider": "v8",
|
|
112
112
|
"moduleNameMapper": {
|