LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

aws-history

Review and inspect past CLI command executions.

TLDR

List recent CLI command history
$ aws history list
copy
Show detailed information about a specific command
$ aws history show [command-id]
copy
Enable CLI history recording
$ aws configure set cli_history enabled
copy

SYNOPSIS

aws history command [options]

DESCRIPTION

aws history provides access to the history of AWS CLI commands executed over time. It allows reviewing past commands, their arguments, API calls made, and responses received for debugging and auditing purposes.History recording must be enabled by setting cli_history = enabled in the ~/.aws/config file. Once enabled, the CLI records all command invocations for later inspection.

PARAMETERS

--debug

Enable debug logging
--output
Output format (json, text, table)
--query
JMESPath query to filter results
--profile
Use a specific named profile

COMMANDS

list

Display a list of previously executed commands with their IDs, timestamps, arguments, and return codes
show
Display detailed information about a specific command execution including API calls and responses

INSTALL

sudo dnf install aws
copy
sudo pacman -S aws-cli
copy
sudo apk add aws-cli
copy
sudo zypper install aws-cli
copy

CAVEATS

History is stored locally and is not synced across machines. Enabling history may expose sensitive data in the stored records. The history database can grow large over time and should be periodically cleaned. History only records CLI commands, not SDK or console actions.

HISTORY

The aws history command was introduced in AWS CLI version 2 to provide better debugging and audit capabilities. It replaced the need for manual logging of CLI operations and integrates with the CLI's structured output system.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid