Skip to content

Commit

Permalink
feat: notices on bootstrap version (#631)
Browse files Browse the repository at this point in the history
Should be merged after aws/aws-cdk#31555.

Documenting new capabilities.
  • Loading branch information
iliapolo authored Sep 30, 2024
1 parent 6001de5 commit 5d0dd9b
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ command, or it can be used by a GitHub workflow to update issues.

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 |
| `components` | A list of the components affected by the incident | See table below |
| `schemaVersion` | The version of the schema used for this notice | String |
| 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 |
| `severity` | The severity of the notice. Warnings are printer yellow. Errors are printed red. Default is no color | 'warning' or 'error' |
| `components` | A list of the components affected by the incident | See table below |
| `schemaVersion` | The version of the schema used for this notice | String |

Component structure:

Expand All @@ -33,6 +34,8 @@ Component structure:
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 'bootstrap'. This will match against the bootstrap stack version in each
environment `cdk deploy` runs against. These will only be displayed when running `cdk deploy`.

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

Expand All @@ -51,6 +54,15 @@ Example:
}
```

## Dynamic Values

Some notices can include special strings that dynamically resolve to values during CLI execution.

| Key | Description | component | example |
| ----------------------------| ---------------------------------- | --------------------------------- |------------------------------------------------------|
| `{resolve:ENVIRONMENTS}` | List of bootstrapped environments | `bootstrap` | aws://1234567890/us-east-1,aws://1234567890/us-east-2|


## FAQ

When adding a new notice to `notices.json`, if you see errors like `Invalid fully qualified name`
Expand Down

0 comments on commit 5d0dd9b

Please sign in to comment.