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
feat(cli): watch streams resources' CloudWatch logs to the terminal #18159
Commits on Dec 29, 2021
-
feat(cli): cdk watch can now stream lambda function logs to the terminal
This adds a new `--logs` flag on `cdk watch` which is set to false by default. When this flag is provided (set to true) watch will fetch any CloudWatch Logs log events for any hotswapped Lambda Function starting at the time the function was hotswapped. Once `cdk watch --logs` is run, any Lambda function that is hotswapped is added to a list of "monitored" resources. This list is maintained through full CloudFormation deployments. So for example if an application had 3 Lambda functions, after running `cdk watch --logs` none of the functions are monitored by default. 1. Change function code for Function1 Function1's CloudWatch log group is now being monitored 2. Change function code for Function2 Function2's CloudWatch log group is now being monitored 3. Change a non-hotswappable property which triggers a full CloudFormation deployment Function1 & Function2 are still being monitored re #18122
Configuration menu - View commit details
-
Copy full SHA for 3add949 - Browse repository at this point
Copy the full SHA 3add949View commit details -
Configuration menu - View commit details
-
Copy full SHA for 151b41d - Browse repository at this point
Copy the full SHA 151b41dView commit details -
Apply suggestions from code review
Co-authored-by: Adam Ruka <adamruka85@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d290fee - Browse repository at this point
Copy the full SHA d290feeView commit details -
Configuration menu - View commit details
-
Copy full SHA for a13dafb - Browse repository at this point
Copy the full SHA a13dafbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad1b4a4 - Browse repository at this point
Copy the full SHA ad1b4a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18fbefd - Browse repository at this point
Copy the full SHA 18fbefdView commit details -
pause the logs monitor during a deployment
updated to use the `print` method that we use elsewhere in the cli also switched back to using `setTimeout` instead of `setInterval` because `setInterval` sometimes caused events to be processed more than once.
Configuration menu - View commit details
-
Copy full SHA for 5bba356 - Browse repository at this point
Copy the full SHA 5bba356View commit details
Commits on Dec 30, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 94fc4c8 - Browse repository at this point
Copy the full SHA 94fc4c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e0bef8 - Browse repository at this point
Copy the full SHA 9e0bef8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 809d3d8 - Browse repository at this point
Copy the full SHA 809d3d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb078bf - Browse repository at this point
Copy the full SHA cb078bfView commit details
Commits on Jan 3, 2022
-
Apply suggestions from code review
Co-authored-by: Adam Ruka <adamruka85@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2f1d9da - Browse repository at this point
Copy the full SHA 2f1d9daView commit details -
Configuration menu - View commit details
-
Copy full SHA for a0c8f21 - Browse repository at this point
Copy the full SHA a0c8f21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2aa585d - Browse repository at this point
Copy the full SHA 2aa585dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e0e475 - Browse repository at this point
Copy the full SHA 8e0e475View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c2af13 - Browse repository at this point
Copy the full SHA 5c2af13View commit details -
Configuration menu - View commit details
-
Copy full SHA for beb9fc4 - Browse repository at this point
Copy the full SHA beb9fc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 87afeab - Browse repository at this point
Copy the full SHA 87afeabView commit details
Commits on Jan 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0dc861d - Browse repository at this point
Copy the full SHA 0dc861dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4329b9c - Browse repository at this point
Copy the full SHA 4329b9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ca38736 - Browse repository at this point
Copy the full SHA ca38736View commit details
Commits on Jan 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 81e6634 - Browse repository at this point
Copy the full SHA 81e6634View commit details -
Configuration menu - View commit details
-
Copy full SHA for d718fdb - Browse repository at this point
Copy the full SHA d718fdbView commit details
Commits on Jan 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b3ae63c - Browse repository at this point
Copy the full SHA b3ae63cView commit details
Commits on Jan 7, 2022
-
Apply suggestions from code review
Co-authored-by: Adam Ruka <adamruka85@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 200fd60 - Browse repository at this point
Copy the full SHA 200fd60View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf6ef3f - Browse repository at this point
Copy the full SHA bf6ef3fView commit details
Commits on Jan 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c38de39 - Browse repository at this point
Copy the full SHA c38de39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f3547a - Browse repository at this point
Copy the full SHA 3f3547aView commit details -
Revert "using lookup role for reading cloudwatch logs"
This reverts commit 3f3547a.
Configuration menu - View commit details
-
Copy full SHA for 5043f4a - Browse repository at this point
Copy the full SHA 5043f4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 965f963 - Browse repository at this point
Copy the full SHA 965f963View commit details
Commits on Jan 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e46e971 - Browse repository at this point
Copy the full SHA e46e971View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4369e08 - Browse repository at this point
Copy the full SHA 4369e08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 15f3e91 - Browse repository at this point
Copy the full SHA 15f3e91View commit details
Commits on Jan 12, 2022
-
refactoring findCloudWatchLogGroups to lookup the list of CloudWatch
log groups from the deployed template rather than by parsing the current template
Configuration menu - View commit details
-
Copy full SHA for 2c07e8f - Browse repository at this point
Copy the full SHA 2c07e8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 87d8d9d - Browse repository at this point
Copy the full SHA 87d8d9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d875b92 - Browse repository at this point
Copy the full SHA d875b92View commit details