I want to change the log display style when I run sam deploy
Author: madakaheriCreated Sep 17, 2025Updated Sep 3, 2026
Labelstype/featurestage/pm-reviewmaintainer/need-responsestage/needs-triage
Describe your idea/feature/enhancement
When running sam deploy, stack events and error messages are always printed in a fixed columnar table format.
This format is sometimes hard to work with, especially when logs are consumed in CI/CD or redirected to files.
Unlike the AWS CLI --output option (which controls API response formatting), this request is specifically about the log display style of deployment progress.
Proposal
Add a dedicated option (for example, --log-format) to control how deployment logs are displayed.
- Default remains the current table format.
- Possible alternatives:
raw,compact, or structured formats such as JSON/YAML. - This would not affect the final SAM outputs, only how logs are streamed to the user.
Things to consider
- No change to the SAM Spec is required.
This is purely a CLI usability improvement.
Additional Details
Example:
sam deploy --log-format textSource: aws/aws-sam-cli