Skip to content

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

@madakaheri

Description

@madakaheri

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 is required.
    This is purely a CLI usability improvement.

Additional Details

Example:

sam deploy --log-format text

Metadata

Metadata

Assignees

No one assigned

    Labels

    stage/needs-triageAutomatically applied to new issues and PRs, indicating they haven't been looked at.type/featureFeature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions