Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: notice for https://github.com/aws/aws-cdk/issues/28465 #362

Merged
merged 3 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions README.md
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, yeah. I run a formatter over this. Just approve it.

Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
## AWS CDK Notices
# AWS CDK Notices

A static website for the distribution of [notices][1] that we want to
broadcast to AWS CDK users. This information can be used in different ways. For
example, it can be consumed by the CDK CLI to display messages to users on every
command, or it can be used by a GitHub workflow to update issues.

## Structure

Notices are declared as JSON objects with the following structure:

| Field | Description | Format |
|:----------------|:------------------------------------------------------------|-----------------|
| :-------------- | :---------------------------------------------------------- | --------------- |
| `title` | The title of the incident (max length: 100) | Free form text |
| `issueNumber` | The ID of the GitHub issue where we are tracking this event | Number |
| `overview` | A paragraph with more information about the incident | Free form text |
Expand All @@ -19,22 +20,23 @@ Notices are declared as JSON objects with the following structure:
Component structure:

| Field | Description | Format |
|-----------|------------------------------------|----------------------------|
| --------- | ---------------------------------- | -------------------------- |
| `name` | The name of the affected component | String¹ |
| `version` | The version range affected | [Semantic version][semver] |

1: The name can be either:

* A fully qualified name of a construct (e.g., `aws-cdk-lib.aws_amplify.CfnBranch`)
* A prefix of a fully qualified name (e.g., `aws-cdk-lib.aws_amplify.`).
* A prefix of a fully qualified name (e.g., `aws-cdk-lib.aws_amplify.`).
This will match a constructs with this prefix. Note the `.` at the end.
* The reserved word `cli`. This will match against the CDK CLI fetching
* The reserved word `cli`. This will match against the CDK CLI fetching
the notices from the website.
* The reserved word `framework`. This will match against the
`@aws-cdk/core`, in case of v1 or `aws-cdk-lib` in case of v2.
* The reserved word `framework`. This will match against the
`@aws-cdk/core`, in case of v1 or `aws-cdk-lib` in case of v2.

[semver]: https://www.npmjs.com/package/semver

Example:
Example:

```json
{
Expand All @@ -53,4 +55,4 @@ Example:

This project is licensed under the Apache-2.0 License.

[1]: https://cli.cdk.dev-tools.aws.dev/notices.json
[1]: https://cli.cdk.dev-tools.aws.dev/notices.json
14 changes: 9 additions & 5 deletions data/notices.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"notices": [
{
"title": "custom resources: provisioning failures",
"issueNumber": 26325,
"overview": "Custom resources may fail to deploy / destroy ",
"title": "core: Stack crossRegionReferences and CfnJson fail with 'Error: Cannot find module'",
"issueNumber": 28465,
"overview": "Enabling the experimental crossRegionReferences on a Stack or using the core.CfnJson construct causes app synthesis to fail with \"Error: Cannot find module '../dist/core/<file>.generated'\" because the files are missing from the faulty release. If you are not using either of the two features, you will not be affected by this.",
"components": [
{
"name": "aws-cdk-lib.core.CustomResource",
"version": ">=v2.87.0 <v2.88.0"
"name": "aws-cdk-lib.CfnJson",
"version": "2.116.0"
},
{
"name": "aws-cdk-lib.CustomResourceProvider",
"version": "2.116.0"
}
],
"schemaVersion": "1"
Expand Down