/aws-image-handler

manage image resources in amazon web services (s3 & rds)

Primary LanguagePythonMIT LicenseMIT

aws-image-handler

manage image resources in amazon web services (s3 & rds) for a specific django project (https://data.tnris.org)

  • iterate through aws s3 bucket and copy all related images with .jpg suffix
  • copy to new image file with uuid as file name
  • delete old images after copy has been made
  • update postgres rds instance (two different tables) with new uuid image file url

requirements:

  • install boto3 with pip install boto3
  • install pyscopg2 with pip install psycopg2
  • uuid (included with standard library)
  • datetime (included with standard library)
  • os (included with standard library)