aws / aws/aws-cdk

aws-log: [Minor improvement] add newline between each statement in CloudWatch Log Saved Query

Open
#22,422 4 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/aws-cloudwatch effort/small feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

Could someone add newline between each statement in CloudWatch Log Saved Query?

https://github.com/aws/aws-cdk/blob/v2.45.0/packages/@aws-cdk/aws-logs/lib/query-definition.ts#L105

This format makes this easy for someone to use because the query fits in the AWS Console code editor screen.

### Use Case

I'm always frustrated when I have to scroll horizontally, in the code editor on CloudWatch Log Insight Query, to find my placeholder in the Saved Query.

### Proposed Solution

_No response_

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

2.x

### Environment details (OS name and version, etc.)

NA

Contributor guide

Open the contributing guide

Research direction

Start in packages/@aws-cdk/aws-logs/lib/query-definition.ts around line 105, where the CloudWatch Logs saved query is assembled. Check how statements are currently separated and verify that each statement appears on its own line while remaining valid for the CloudWatch console.】【。

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.