Skip to content

This script fetches all EC2 instances with an user define filter for method "ec2.instances.filter". It also include a function to collect all EC2 instances with no "Owner" tag. The output of the results are written to a CSV file with a default name of find_instances.csv.

Notifications You must be signed in to change notification settings

k-guo/find-ec2-instances-with-filter

Repository files navigation

This script fetches all EC2 instances with an user define filter for method "ec2.instances.filter" as documented on https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#instance

It also include a function to collect all EC2 instances with no "Owner" tag. The output of the results are written to a CSV file with a default name of find_instances.csv.

Pre-requisites Installation

  1. Install packages:

pip3 install -r requirements.txt

  1. Configure the AWS CLI:

aws configure

Script Usage

Run:

python3 find-instances-with-tag-filter.py

About

This script fetches all EC2 instances with an user define filter for method "ec2.instances.filter". It also include a function to collect all EC2 instances with no "Owner" tag. The output of the results are written to a CSV file with a default name of find_instances.csv.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages