-
Notifications
You must be signed in to change notification settings - Fork 4.3k
chore(toolkit): introduce cloudwatchlogsmonitor to deploy and watch #33219
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
Changes from 5 commits
5eca5fe
fbc2a7a
dd914b0
a7ae168
96034fb
3614245
fdd0c88
1fa22e6
a024fd3
8c5bebb
4941dc6
2d70332
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| import { StackActivityProgress } from '../../api/aws-cdk'; | ||
| import { CloudWatchLogEventMonitor, StackActivityProgress } from '../../api/aws-cdk'; | ||
| import type { StackSelector } from '../../api/cloud-assembly'; | ||
|
|
||
| export type DeploymentMethod = DirectDeploymentMethod | ChangeSetDeploymentMethod; | ||
|
|
@@ -173,6 +173,14 @@ export interface BaseDeployOptions { | |
| * @default 1 | ||
| */ | ||
| readonly concurrency?: number; | ||
|
|
||
| /** | ||
| * Whether to show logs from all CloudWatch log groups in the template | ||
| * locally in the users terminal | ||
| * | ||
| * @default - false | ||
| */ | ||
| readonly traceLogs?: boolean; | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -189,6 +197,14 @@ export interface ExtendedDeployOptions extends DeployOptions { | |
| * @default - nothing extra is appended to the User-Agent header | ||
| */ | ||
| readonly extraUserAgent?: string; | ||
|
|
||
| /** | ||
| * Allows adding CloudWatch log groups to the log monitor via | ||
| * cloudWatchLogMonitor.setLogGroups(); | ||
| * | ||
| * @default - not monitoring CloudWatch logs | ||
| */ | ||
| readonly cloudWatchLogMonitor?: CloudWatchLogEventMonitor; | ||
|
||
| } | ||
|
|
||
| export interface DeployOptions extends BaseDeployOptions { | ||
|
|
@@ -221,14 +237,6 @@ export interface DeployOptions extends BaseDeployOptions { | |
| */ | ||
| readonly outputsFile?: string; | ||
|
|
||
| /** | ||
| * Whether to show logs from all CloudWatch log groups in the template | ||
| * locally in the users terminal | ||
| * | ||
| * @default - false | ||
| */ | ||
| readonly traceLogs?: boolean; | ||
|
|
||
| /** | ||
| * Build/publish assets for a single stack in parallel | ||
| * | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,6 +28,11 @@ export { WorkGraph } from '../../../../aws-cdk/lib/util/work-graph'; | |
| export type { Concurrency } from '../../../../aws-cdk/lib/util/work-graph'; | ||
| export { WorkGraphBuilder } from '../../../../aws-cdk/lib/util/work-graph-builder'; | ||
| export type { AssetBuildNode, AssetPublishNode, StackNode } from '../../../../aws-cdk/lib/util/work-graph-types'; | ||
| export { CloudWatchLogEventMonitor } from '../../../../aws-cdk/lib/api/logs/logs-monitor'; | ||
| export { findCloudWatchLogGroups } from '../../../../aws-cdk/lib/api/logs/find-cloudwatch-logs'; | ||
|
|
||
| // Test APIs | ||
| export { MockSdk } from '../../../../aws-cdk/test/util/mock-sdk'; | ||
|
||
|
|
||
| // @todo Cloud Assembly and Executable - this is a messy API right now | ||
| export { CloudAssembly, sanitizePatterns, StackCollection, ExtendedStackSelection } from '../../../../aws-cdk/lib/api/cxapp/cloud-assembly'; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what, but the Toolkit doesn't really have a concept of a user terminal. It works with the IoHost instead (which or might not print).
I realize we copied this description from elsewhere. But hey, let's make it better now!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call out