Skip to main content

Posts

Showing posts with the label Support Case

List all AWS support cases with their details

 In this blog, I will show you how to write a Python script that will list all the support cases raised from your AWS account. This script can be very useful when you want a report showing the information about AWS support cases are either open or in resolved state. Let's begin with importing Boto3 and Tabulate module. Tabulate module will help us to present the output in table format. You can install Tabulate module by running  pip install tabulate  command. import boto3 from tabulate import tabulate Once you've imported the require modules, we can set up the connection to AWS by giving the default profile and region name. At this stage, we can only use " us-east-1 " region to run any commands to fetch support case details. So, we will be using the same region in our code too. # setup profile and region profile = "default" region = "us-east-1 " Now, here is the actual code where we will gather the information about all the cases, covert in t