aws-cli/bash-linux/s3/bucket-lifecycle-operations/README.md
This example demonstrates how to interact with some of the basic Amazon S3 operations.
The main script file includes functions that perform the following tasks:
This example is written as a set of functions in a shell script file (bucket-operations.sh) that can be sourced from another file. The file bucket-operations-test.sh script demonstrates how to call the functions by sourcing the bucket-operations.sh file and calling each of the functions.
If all steps work correctly, the test script removes all resources that it created.
To see the intermediate results of each step, run the script with a -i parameter. When run this way, you can view the current status of the bucket or its contents using the Amazon S3 console. The script only proceeds to the next step when you press ENTER at the prompt.