Automate File Handling With Python & AWS S3 | Five Minute Python Scripts

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ย. 2024

ความคิดเห็น • 111

  • @bismarckandu6069
    @bismarckandu6069 2 ปีที่แล้ว +2

    This is natural teaching.

  • @breadenthusiast
    @breadenthusiast 4 ปีที่แล้ว +11

    Your awesome Derrick! Some more videos on AWS and APIs would be wonderful! Keep up the great work!

  • @petermcentee9922
    @petermcentee9922 3 ปีที่แล้ว +12

    This is exactly what I needed for work, thanks so much!

  • @oldguywholifts
    @oldguywholifts 3 ปีที่แล้ว

    Has to be said.. direct and precisely what the title says. EXCELLENT!

  • @unitech23
    @unitech23 9 หลายเดือนก่อน

    Amazing Derrick. Great Job Dude!!

  • @DanielArturoSanchezDeoleo
    @DanielArturoSanchezDeoleo 2 ปีที่แล้ว

    thank you greetings from the Dominican Republic

  • @HopeUnveiled
    @HopeUnveiled 2 ปีที่แล้ว

    Wish i was this beautiful hahah Great vid dude! Helped me a lot.

  • @RenandOliveira
    @RenandOliveira 2 ปีที่แล้ว

    Great Video Derrick! Go Vols!

  • @colorfuljosh
    @colorfuljosh 2 ปีที่แล้ว

    Great video, thanks from Australia dude

  • @abhinavkannojia1053
    @abhinavkannojia1053 4 ปีที่แล้ว +1

    Big Fan of these pythonic tricks..Nice work there. Please keep it coming !!

  • @nowyouknow2249
    @nowyouknow2249 4 ปีที่แล้ว +6

    Well done bro.
    Please more vids on AWS.

    • @deepquest
      @deepquest 2 ปีที่แล้ว

      All about S3 Bucket;
      Subscribe for more such videos.
      th-cam.com/video/ljtrRW69z10/w-d-xo.html

  • @paulschrum9222
    @paulschrum9222 3 ปีที่แล้ว +6

    3:36 -- file is a python keyword. Don't use Python keywords for variable names. Use something like a_file or my_file.

  • @lancehoward1609
    @lancehoward1609 4 ปีที่แล้ว

    Great job. Finally that can explain step by step what you are doing!

  • @chadripley2776
    @chadripley2776 3 ปีที่แล้ว +2

    great video. One issue I had was you have to set the region in the arguements ofr creating the client object if it isnt configured already.

  • @AbhishekBhuva
    @AbhishekBhuva 4 ปีที่แล้ว

    I am a Vlogger but as a professional, i am a software engineer too.
    I think your video is more interactive since its 6-10 min.

  • @Sagar_Tachtode_777
    @Sagar_Tachtode_777 3 ปีที่แล้ว +2

    Awsome Job. Thank you Derrick...

  • @dreambig9794
    @dreambig9794 3 ปีที่แล้ว +1

    I have my bucket like "parent_Bucket/Chield_Bucket", Now I want to upload my file to Chield_Bucket. Could you please suggest what I need to do for this.

  • @vivekr4690
    @vivekr4690 4 ปีที่แล้ว

    Keep uploading such useful videos! Thanks! I learnt some new concepts here!

    • @deepquest
      @deepquest 2 ปีที่แล้ว

      All about S3 Bucket;
      Subscribe for more such videos.
      th-cam.com/video/ljtrRW69z10/w-d-xo.html

  • @Reptar4000
    @Reptar4000 3 ปีที่แล้ว

    You’re the man. Need more content!

  • @fbzz64
    @fbzz64 4 ปีที่แล้ว

    You explain very well, thanks for sharing your knowledge .. Greetings from Argentina!

  • @renyildiz5155
    @renyildiz5155 3 ปีที่แล้ว

    I am fairly new to data but you are awesome. Thank you!!

  • @VigilanteMian
    @VigilanteMian 2 ปีที่แล้ว

    Excellent, Derrick!!!

  • @just5two163
    @just5two163 2 ปีที่แล้ว

    Thank you Derrick. Nice tutorial. Thanks for your time! It helped me a lot.

  • @ShivamGupta-dj3eh
    @ShivamGupta-dj3eh 4 ปีที่แล้ว +1

    It's not working for me. Showing error: boto3.exceptions.S3UploadFailedError: Failed to upload upload_data_S3.py to new-bucket/python/upload_data_S3.py: An error occurred (NoSuchBucket) when calling the PutObject operation: The specified bucket does not exist

  • @kunaljha6204
    @kunaljha6204 2 ปีที่แล้ว

    Stupendous tutorial....Need more such tutorials

  • @pepex90
    @pepex90 3 ปีที่แล้ว

    Thank Derrick !!

  • @3h936
    @3h936 2 ปีที่แล้ว

    Thank you, it's amazing to video !!!

  • @adrianmisak07
    @adrianmisak07 2 ปีที่แล้ว

    thank you, this was great

  • @ncTechlearning
    @ncTechlearning 4 ปีที่แล้ว +3

    Could you please make a video on file transfer from sftp to amazon s3 using python

  • @vijaypingale7
    @vijaypingale7 3 ปีที่แล้ว

    Thanks man ! Great video!

  • @AdityaBolt
    @AdityaBolt 4 ปีที่แล้ว +2

    loved the video..

  • @velnathravanan1765
    @velnathravanan1765 2 ปีที่แล้ว

    In the Python file, write a program to get all the files from a public S3 bucket named in random list. In there there might be multiple files, but your program should find the file with the prefix __cb__, and then output the full name of the file. You should use the boto3 module to solve this challenge.

  • @mwredfern
    @mwredfern 2 ปีที่แล้ว

    just reviewed another video from someone that literally walked through this same scenario. however, their video was 57 mins! no. i did not watch the 57 min video. i watched about 3 mins and saw your video sitting in the sidebar screaming '7 minute video over here!' haha.
    to the point and just the facts. no showboating knowledge and skills.
    if im ever drowning, i hope you are on the shore to save me and not the person who makes a 57 min video on 'how to jump in and save a drowning person'. haha

  • @japeshgawale9640
    @japeshgawale9640 3 ปีที่แล้ว

    You are awesome Derrick! Could you Please upload a video of automating data transfer from AWS S3 to AWS Redshift (Using AWS Glue) or any other appropriate method .

  • @alejandroaparicioguerra1818
    @alejandroaparicioguerra1818 3 ปีที่แล้ว

    Good sample could you please make an example of how to send email with lambda too

  • @AshisRaj
    @AshisRaj ปีที่แล้ว

    Excellent

  • @carlbjorklund2703
    @carlbjorklund2703 3 ปีที่แล้ว +2

    Hi, thanks for great video. I did though run into an issue if you have time. I followed the tutorial and I can get the file (image.jpg) from my images directory (I see this image by running print("file", file) in the os.listdir for-loop) but when I run:
    "client.upload_file(file, upload_file_bucket, upload_file_key)"
    I get error "FileNotFoundError; [WinError 2] Can't find the file 'image.jpg'
    Do you have an idea what the issue can be? Thanks

    • @tahmeedhossain2910
      @tahmeedhossain2910 3 ปีที่แล้ว

      Did you find any solution for this ? I am having the same issue.

    • @tahep3906
      @tahep3906 2 ปีที่แล้ว

      same with me, any solution?

  • @keithsmalling9723
    @keithsmalling9723 2 ปีที่แล้ว

    Brilliant tutorial well explained

  • @anilct6749
    @anilct6749 3 ปีที่แล้ว

    Thanks man. Much appreciated!

    • @deepquest
      @deepquest 2 ปีที่แล้ว

      All about S3 Bucket;
      Subscribe for more such videos.
      th-cam.com/video/ljtrRW69z10/w-d-xo.html

  • @vamshidharr3434
    @vamshidharr3434 ปีที่แล้ว

    Awesome !!!

  • @rajkishan3690
    @rajkishan3690 3 ปีที่แล้ว

    Well Explained.

  • @amatulathok597
    @amatulathok597 ปีที่แล้ว

    Thank's a lot dude

  • @rahulmeena79
    @rahulmeena79 8 หลายเดือนก่อน

    I uploaded files to S3 yeahhhhhhh

  • @GG1440
    @GG1440 3 ปีที่แล้ว

    This is very helpful, thank you.

    • @deepquest
      @deepquest 2 ปีที่แล้ว

      All about S3 Bucket;
      Subscribe for more such videos.
      th-cam.com/video/ljtrRW69z10/w-d-xo.html

  • @stahmedpendragonguinevere2711
    @stahmedpendragonguinevere2711 4 ปีที่แล้ว +1

    Keep up the good stuff matey!

  • @DonellGrace
    @DonellGrace 4 ปีที่แล้ว

    Amazing. Well done

  • @granand
    @granand 3 ปีที่แล้ว

    Thank you so much. Derrick Please can you take me along with you in a journey to use Python for data manipulation using strings, lists, tables, SQL and excel with regex.

  • @lotusmojo
    @lotusmojo 3 ปีที่แล้ว

    Awesome

  • @harisantho
    @harisantho ปีที่แล้ว

    Hi.. thanks for this video
    How to copy one file from ec2 instance particular path to s3 bucket

  • @sathishsuganya2013
    @sathishsuganya2013 2 ปีที่แล้ว

    If i wanted to add some file in to the specific folder (Existing on S3 Bucket)how i do that?

  • @MuhammadAli-zg2nw
    @MuhammadAli-zg2nw 3 ปีที่แล้ว

    you deserve the like and sub

  • @BekaBelle
    @BekaBelle ปีที่แล้ว

    Thanks Derrick! What if i wanted to upload csv files one each day and to also check if the file is already in s3 then dont upload?

  • @romachd01
    @romachd01 3 ปีที่แล้ว

    @Derrick Sherrill everytime I try to run the code it picks up files from windows32 directory. I have the .py file inside a folder with few test .txt files but it keeps picking up txt files from the win32 dir. Whats happening, please help

  • @islauddin
    @islauddin 2 ปีที่แล้ว

    Looking for a way to transfer files from our Sharepoint location to a AWS S3 bucket using Python. Any good suggestions on how to go about doing it?

  • @lucasneves3465
    @lucasneves3465 2 ปีที่แล้ว

    amazing, it was very useful
    I have a question: how can I send the file to a specif path in my bucket?

  • @sarahkim3856
    @sarahkim3856 3 ปีที่แล้ว

    Hi, I was trying this and I'm getting an error of "FileNotFoundError: [WinError 2] The system cannot find the file specified:" I tried searching it everywhere but I couldn't figure it out. Any advice?

  • @un_known7299
    @un_known7299 2 ปีที่แล้ว

    How to securely insert the Access key and password to the python or c#
    Because using your method any one can decompile my program and have my access key and secret key ?

  • @AnAyahaDay
    @AnAyahaDay 4 ปีที่แล้ว

    How can we delete all files from a S3 folder? ( not the folder, but all files in a folder )

  • @rupeshbhuju2897
    @rupeshbhuju2897 2 ปีที่แล้ว

    Hi there! If you could suggest some python approach to write a file into multiple target buckets from source bucket, that would be helpful. Thanks

  • @gabopython
    @gabopython ปีที่แล้ว

    good video

  • @parag4982
    @parag4982 3 ปีที่แล้ว

    what to do when the s3 has multiple buckets and we need to choose a particular bucket??

  • @lucasrosa7781
    @lucasrosa7781 3 ปีที่แล้ว

    Hi Derrick!! I want to know with its possible to do this with a AWS Lambda for automation pourposes?? (sorry about the english, im from Brazil)

  • @yaseenimuhammadraja9461
    @yaseenimuhammadraja9461 3 ปีที่แล้ว

    Great video 👍

  • @withkonan
    @withkonan 2 ปีที่แล้ว

    how can i upload a 1 gb video to s3 bucket quickly . or if i could upload it asynchronosly(i.e., my page should get redirected to next page and the video can get uploaded at background)

  • @priyankapatel9461
    @priyankapatel9461 2 ปีที่แล้ว

    How can I Write a Python code to create AMI and send email to all for AMI creation. also create spot instance on based of backup AMI?

  • @soniathomase7757
    @soniathomase7757 2 ปีที่แล้ว

    Do you have any idea how i can access files in a s3 bucket with just my IAM role? I dont have the access keys. Is this possible?

  • @philippephilippe1265
    @philippephilippe1265 3 ปีที่แล้ว

    Hi Derrick and all
    I tried this method and I am getting the error below
    ImportError: cannot import name 'access_key' from 'secrets' (C:\Program Files\Python37\lib\secrets.py)
    did anyone had same error? and how do you go about it?

  • @mainakbiswas6541
    @mainakbiswas6541 2 ปีที่แล้ว

    Nice video. I have one question. I don't want to download the content from S3, and I want to know the content details like no. Of .txt, no. Of. py within that bucket.
    I am using aws s3 ls bucket_name/ - - recursive - - human-readable - - summarize
    It shows the total size and objects no. But can't find the file counts with respect to their extensions.

  • @preyasprathap
    @preyasprathap 4 ปีที่แล้ว +1

    Nice video..
    i am thinking of directly deleting the files after it gets uploaded.

    • @CodeWithDerrick
      @CodeWithDerrick  4 ปีที่แล้ว +1

      Thanks!
      You would just add this inside your for loop after the upload statement:
      os.remove(file)

  • @erich.3247
    @erich.3247 4 ปีที่แล้ว

    Thanks for the vid man! Noob questions here. Can the S3 subdirectory be created on the fly from within the python script? Say I get a .py file but I have no python subdirectory in my bucket. If my script calls for storing the file in my bucket's non-existent "python" subdirectory will it be created or do I have to manually do it beforehand? Thanks!

  • @xin6129
    @xin6129 3 ปีที่แล้ว +1

    This is great! Thanks for sharing! Could you also do a FTP one? I am very new to python/

    • @DarkStrado
      @DarkStrado 2 ปีที่แล้ว

      You should never use FTP anymore. SCP is more secure.

  • @andrzejandrzejos6674
    @andrzejandrzejos6674 4 ปีที่แล้ว

    Hi! Do you think Python allows us to scrap data from the screen, not only from a website? I see there is a lot info about web scraping but I want to scrap words that I type in an app. I dont have acess to the API.

  • @hesamulhaque2197
    @hesamulhaque2197 3 ปีที่แล้ว

    Great video like always! Can you also make a video on cron job?

    • @deepquest
      @deepquest 2 ปีที่แล้ว

      All about S3 Bucket;
      Subscribe for more such videos.
      th-cam.com/video/ljtrRW69z10/w-d-xo.html

  • @surajiyer7406
    @surajiyer7406 3 ปีที่แล้ว

    If we need to read multiple files from AWS S3 bucket, what must be the code in Python?

  • @BehruzbekOtayev
    @BehruzbekOtayev 4 ปีที่แล้ว

    Thank you

  • @celsoalbertoreyesugalde4792
    @celsoalbertoreyesugalde4792 3 ปีที่แล้ว

    Excellent video!!, could you do something similar but uploading automatically to Google Cloud Platform?

  • @jamilmjq
    @jamilmjq ปีที่แล้ว

    need idea how to copy files to s3 bucket in UC4

  • @rattaponinsawangwong5482
    @rattaponinsawangwong5482 4 ปีที่แล้ว

    I wonder if you could do the same with google drive? Google drive is more popular in my region.

  • @rishvish
    @rishvish 2 ปีที่แล้ว

    Can we download files from AWS in any similar way?

  • @raja4usekhar
    @raja4usekhar 3 ปีที่แล้ว

    Can you do /suggest best automation tools to work with aws

  • @willd0g
    @willd0g 3 ปีที่แล้ว

    That’s great

  • @omkarbabar4420
    @omkarbabar4420 3 ปีที่แล้ว

    Hi.. Can you please tell how to do same thing on heroku platform?

  • @MichaelDavis-hk8vl
    @MichaelDavis-hk8vl 3 ปีที่แล้ว

    Can I do this from Juypter Notebook?

  • @XandoFootball
    @XandoFootball 3 ปีที่แล้ว

    Dude , Is there any reason why you aren't a Cloud developer for a company?

  • @senthilcm
    @senthilcm 3 ปีที่แล้ว

    Hi How can read the files browser for S3

  • @wilianuhlmann5284
    @wilianuhlmann5284 3 ปีที่แล้ว

    how to copy file in other directory?

  • @gregf9160
    @gregf9160 4 ปีที่แล้ว

    More on AWS and Python would be great!

  • @MrPawan412
    @MrPawan412 2 ปีที่แล้ว

    Awesome Derrick , I have one requirement where i need to upload the file from S3 to Sharepoint Site using python in AWS EC2. Any help please ???

    • @deepquest
      @deepquest 2 ปีที่แล้ว

      All about S3 Bucket;
      Subscribe for more such videos.
      th-cam.com/video/ljtrRW69z10/w-d-xo.html

  • @aajadsingh8050
    @aajadsingh8050 4 ปีที่แล้ว

    Nice

  • @mayukhchattaraj5552
    @mayukhchattaraj5552 3 ปีที่แล้ว

    Please upload to a code for S3 bucket to S3 bucket transfer of files.

  • @harisantho
    @harisantho 2 ปีที่แล้ว

    Hi 👋 thanks for your valuable KT.
    I'm requesting you to help me with a automated python script to check RDS snapshot name and snapshot created time for multiple Rds in multiple regions. Like N.V, ohio, Sydney, Singapore, Ireland, Paris, Belgium, etc..

  • @mukeshk2553
    @mukeshk2553 ปีที่แล้ว

    Bucket to bucket automation how to do

  • @rickramirez94
    @rickramirez94 4 ปีที่แล้ว

    Do a aws series !

  • @ajtam05
    @ajtam05 2 ปีที่แล้ว

    Are you able to download, as well?

  • @mwredfern
    @mwredfern 2 ปีที่แล้ว

    if you have a video for SFTP, please share link. :)

  • @narendrasuryawanshi5815
    @narendrasuryawanshi5815 4 ปีที่แล้ว

    Can system run a code even its shutdown. Lets say i don't work on Saturday & want to run a code. Will it possible?

    • @Byomakesh1
      @Byomakesh1 4 ปีที่แล้ว

      Narendra Suryawanshi For that you need to deploy your script on a server and schedule it

  • @ai.simplified..
    @ai.simplified.. 3 ปีที่แล้ว

    I dont know what has happend that your chanel been unsubcripted

  • @amnksngh29
    @amnksngh29 2 ปีที่แล้ว

    Thanks Derrick!