The return code is usually a hidden code sent after running a AWS Command Line Interface (AWS CLI) command which describes the status of the command. You can use the echo
command to display the code sent from the last AWS CLI command and use these codes to determine if a command was successful or if it failed, and why a command might have an error. In addition to the return codes, you can view more details about a failure by running your commands with the --debug
switch. This switch produces a detailed report of the steps the AWS CLI uses to process the command, and what the result of each step was.
To determine the return code of an AWS CLI command, run one of the following commands immediately after running the CLI command.
$
echo $?
0
PS>
echo $lastexitcode
0
C:\>
echo %errorlevel%
0
The following are the return code values that can be returned at the end of running an AWS Command Line Interface (AWS CLI) command.
Code Meaning 0The service responded with an HTTP response status code of 200 indicating that there were no errors generated by the AWS CLI and AWS service the request was sent to.
1One or more Amazon S3 transfer operations failed. Limited to S3 commands.
2The meaning of this return code depends on the command:
Applicable to all AWS CLI commands â the command entered couldn't be parsed. Parsing failures can be caused by, but aren't limited to, missing required subcommands or arguments, or using unknown commands or arguments.
Limited to S3 commands â One or more files marked for transfer were skipped during the transfer process. However, all other files marked for transfer were successfully transferred. Files that are skipped during the transfer process include: files that don't exist; files that are character special devices, block special device, FIFO queues, or sockets; and files that the user doesn't have read permissions to.
The command was interrupted by a SIGINT. This is the signal sent by you to cancel a command with Ctrl
+C
.
Command syntax was invalid, an unknown parameter was provided, or a parameter value was incorrect and prevented the command from running.
253The system environment or configuration was invalid. While the command provided might be syntactically valid, missing configuration or credentials prevented the command from running.
254The command successfully parsed and a request made to the specified service but the service returned an error. This will generally indicate incorrect API usage or other service specific issues.
255The command failed. There were errors generated by the AWS CLI or by the AWS service to which the request was sent.
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4