We can use awscli command to list all instances from all regions across multiple AWS accounts using multiple profile names.
csv
How to import CSV file data into a PostgreSQL table (AWS RDS) using psql command
You can use psql command to import CSV data file to automate the process of importing data.