Basic Bash Scripting

At this point, you should have the following:

  1. An Amazon Linux EC2 instance
  2. A role attached to the instance
  3. Some basic knowledge of the AWS CLI
  4. An S3 bucket in your account

Let us create a basic bash script that retrieves information about the instance, writes it to a file, and uploads the file to S3.