This tutorial demonstrates how to get started with Amazon S3 using the AWS CLI. You'll learn the fundamental concepts and operations for working with this AWS service through command-line interface.
You can either run the automated script s3-gettingstarted.sh to execute all operations automatically with comprehensive error handling and resource cleanup, or follow the step-by-step instructions in the s3-gettingstarted.md tutorial to understand each AWS CLI command and concept in detail. The script includes interactive prompts and built-in safeguards, while the tutorial provides detailed explanations of features and best practices.
The script creates the following AWS resources in order:
- S3 bucket (primary bucket for tutorial)
- S3 bucket (secondary bucket for cross-region replication)
- S3 public access block configuration
- S3 bucket versioning configuration
- S3 bucket encryption configuration
- S3 object (sample text file)
- S3 object (sample image file)
- S3 object (sample document file)
- S3 bucket tagging configuration
The script prompts you to clean up resources when you run it, including if there's an error part way through. If you need to clean up resources later, you can use the script log as a reference point for which resources were created.