aws / aws/aws-sam-cli

I want to change the log display style when I run sam deploy

Open
#8,273 2 comments 0 reactions 0 assignees View on GitHub
maintainer/need-response stage/needs-triage stage/pm-review type/feature
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

### 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
1. No change to the [SAM Spec](https://github.com/awslabs/serverless-application-model) is required.
This is purely a CLI usability improvement.

### Additional Details

Example:
```bash
sam deploy --log-format text

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.