This documentation is for Version 1 of the Amazon CLI only. For documentation related to Version 2 of the Amazon CLI, see the Version 2 User Guide.
Code examples for the Amazon CLI
This chapter provides a collection of examples that show you how to use the Amazon Command Line Interface (Amazon CLI) with Amazon Web Services services.
The Amazon CLI has the following types of examples in this guide:
-
Guided command examples - Guided command examples for the Amazon CLI User Guide on how to use the Amazon CLI with some Amazon Web Services services. These are often more detailed examples than the examples from the Amazon CLI reference guide.
-
Amazon CLI command examples - Open source command examples that are also available in the Amazon CLI reference guide. Command examples are hosted in the Amazon CLI
repository on GitHub. -
Amazon CLI using Bash scripting code examples - Open source bash scripting examples. Bash scripting examples are hosted in the Amazon Code Examples Repository
on GitHub.
Example feedback
Can't find what you need? Request a command example by using the Provide feedback link at the bottom of this page or on the relevant command page in the Amazon CLI reference guide.
Want to contribute? Contribute Amazon CLI command examples in the Amazon Code Examples
Repository