-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use AWS CDK Annotations to log messages
Use AWS CDK Annotations to log messages instead of our custom Logger. Annotations have coloured output (info = white, warning = yellow, error = red). They also work with the `--trace`, `--strict` and `--ignore-errors` flags of the CDK CLI. Note, we don't need to employ the trick in #434 as Annotations (somehow) do not get piped to disk if one redirects output to disk. Before: ```console ➜ npx cdk synth --strict --path-metadata false --version-reporting false # GuStack has 'migratedFromCloudFormation' set to false. MySnsTopic is a stateful construct, it's logicalId will be auto-generated and AWS will create a new resource. Parameters: Stage: Type: String Default: CODE AllowedValues: - CODE - PROD Description: Stage name ``` After: ```console ➜ npx cdk synth --strict --path-metadata false --version-reporting false [Info at /CdkPlayground/MySnsTopic] GuStack has 'migratedFromCloudFormation' set to false. MySnsTopic is a stateful construct, it's logicalId will be auto-generated and AWS will create a new resource. Parameters: Stage: Type: String Default: CODE AllowedValues: - CODE - PROD Description: Stage name ``` See: - https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_core.Annotations.html
- Loading branch information
Showing
4 changed files
with
9 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters