aws / aws/aws-cdk

(assets): log asset size before publishing

Open
#18,066 1 comment 2 reactions 0 assignees View on GitHub
@aws-cdk/assets effort/small feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Description

Would be great to see the asset size in the log files.

https://github.com/aws/aws-cdk/blob/fd8e0e33816cb46678f7d1beac80b1623cdb6bac/packages/cdk-assets/lib/publishing.ts#L82-L84

### Use Case

Sometimes I want to see asset size increases / decreases and checked the logs assuming it would be reported. But it was not.

### Proposed Solution

Add both total bytes and human-readable sizes to the log.

https://github.com/aws/aws-cdk/blob/fd8e0e33816cb46678f7d1beac80b1623cdb6bac/packages/cdk-assets/lib/publishing.ts#L82-L84

### Other information

_No response_

### Acknowledge

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

Contributor guide

Open the contributing guide

Research direction

Start at packages/cdk-assets/lib/publishing.ts lines 82-84, where the publishing log is emitted. Confirm how the asset size is available there, then make the log include both total bytes and a human-readable size. Done means asset size increases and decreases are visible in the publishing logs.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.