You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): support for matching notices with arbitrary module names (#19088)
This change allows us to publish notices to match any arbitrary module or
construct. For example, a notice that targets the component
```json
{
"name": "@aws-cdk/aws-apigatewayv2-alpha",
"version": ">=2.10.0"
}
```
will be displayed to the user if they have in their cloud assembly a resource of
type `@aws-cdk/aws-apigatewayv2-alpha.HttpStage` or
`@aws-cdk/aws-apigatewayv2-alpha.HttpApi` or any other construct from the
`apigatewayv2` module, as long as it was built using some version of the
module above or equal to 2.10.0.
We can also target a specific construct, instead:
```json
{
"name": "@aws-cdk/aws-apigatewayv2-alpha.HttpStage",
"version": ">=2.10.0"
}
```
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Copy file name to clipboardExpand all lines: packages/aws-cdk/README.md
+9-4
Original file line number
Diff line number
Diff line change
@@ -507,8 +507,6 @@ $ cdk doctor
507
507
508
508
## Notices
509
509
510
-
> This feature exists on CDK CLI version 2.14.0 and up.
511
-
512
510
CDK Notices are important messages regarding security vulnerabilities, regressions, and usage of unsupported
513
511
versions. Relevant notices appear on every command by default. For example,
514
512
@@ -530,6 +528,7 @@ NOTICES
530
528
531
529
More information at: https://github.com/aws/aws-cdk/issues/16603
532
530
531
+
533
532
17061 Error when building EKS cluster with monocdk import
534
533
535
534
Overview: When using monocdk/aws-eks to build a stack containing
@@ -540,6 +539,7 @@ NOTICES
540
539
541
540
More information at: https://github.com/aws/aws-cdk/issues/17061
542
541
542
+
543
543
If you don’t want to see an notice anymore, use "cdk acknowledge ID". For example, "cdk acknowledge 16603".
544
544
```
545
545
@@ -553,8 +553,9 @@ You can suppress warnings in a variety of ways:
553
553
554
554
```json
555
555
{
556
+
"notices": false,
556
557
"context": {
557
-
"notices": false
558
+
...
558
559
}
559
560
}
560
561
```
@@ -587,12 +588,16 @@ NOTICES
587
588
588
589
16603 Toggling off auto_delete_objects for Bucket empties the bucket
589
590
590
-
Overview: if a stack is deployed with an S3 bucket with auto_delete_objects=True, and then re-deployed with auto_delete_objects=False, all the objects in the bucket will be deleted.
591
+
Overview: if a stack is deployed with an S3 bucket with
592
+
auto_delete_objects=True, and then re-deployed with
593
+
auto_delete_objects=False, all the objects in the bucket
594
+
will be deleted.
591
595
592
596
Affected versions: framework: <=2.15.0 >=2.10.0
593
597
594
598
More information at: https://github.com/aws/aws-cdk/issues/16603
595
599
600
+
596
601
If you don’t want to see a notice anymore, use "cdk acknowledge <id>". For example, "cdk acknowledge 16603".
0 commit comments