run.py 655 B

12345678910111213141516171819202122232425262728293031323334
  1. # -*- coding: utf-8 -*-
  2. from upload_s3 import UploadS3
  3. BASE_FOLDER = '/folder/base'
  4. BACKET_NAME = 'bucket_name'
  5. BASE_OUTPUT_S3 = "key_file"
  6. dataFile = {}
  7. #Local de saída do arquivo no s3
  8. dataFile['output'] = '{0}/'.format(BASE_OUTPUT_S3)
  9. #Local dos certificados na sua maquina
  10. dataFile['output_local'] = BASE_FOLDER
  11. #Add nome do bucket
  12. dataFile ['bucket_name'] = BACKET_NAME
  13. print('\n\n\n #######-> UPLOAD')
  14. output = dataFile['output']
  15. output_local = dataFile['output_local']
  16. bucket = dataFile['bucket_name']
  17. _uploadS3 = UploadS3(destinationFolder=output, pathFileConvert=output_local, bucketName=bucket)
  18. _uploadS3.upload_files()