Code Challenge #3:
Amazon EC2 Instance Browser
Instructions:
Write code to print out the health and status for all Amazon EC2 instances in a user's account in one Availability Zone in the us-west-2 region (i.e. including running, stopped, pending, shutting-down, etc.).
Go here for more information on participating in the AWS re:Invent Code Challenge and prizes.
Services Used:
- EC2
Your code should include:
- Code for calling the DescribeInstanceStatus operation
- Code for using filter parameter when calling the DescribeInstanceStatus operation to filter results to one AZ (ex: Filter: "availability-zone" => "us-west-2a")
- Code for using the IncludeAllInstances parameter to include instances in other states (pending, stopped, etc.)
- Code for handling paginated results from DescribeInstanceStatus
- Code to display the correct fields
Your output should include:
- Instance ID
- Instance state
- Instance status (with a list of tests run)
- System status (with a list of tests run)
