At this point, you should have the following:
Let us create a basic bash script that retrieves information about the instance, writes it to a file, and uploads the file to S3.