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

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 111

  • @breadenthusiast
    @breadenthusiast 4 года назад +11

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

  • @bismarckandu6069
    @bismarckandu6069 2 года назад +2

    This is natural teaching.

  • @petermcentee9922
    @petermcentee9922 3 года назад +12

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

  • @oldguywholifts
    @oldguywholifts 4 года назад

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

  • @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.

  • @RenandOliveira
    @RenandOliveira 2 года назад

    Great Video Derrick! Go Vols!

  • @unitech23
    @unitech23 10 месяцев назад

    Amazing Derrick. Great Job Dude!!

  • @nowyouknow2249
    @nowyouknow2249 4 года назад +6

    Well done bro.
    Please more vids on AWS.

    • @deepquest
      @deepquest 2 года назад

      All about S3 Bucket;
      Subscribe for more such videos.
      ruclips.net/video/ljtrRW69z10/видео.html

  • @VigilanteMian
    @VigilanteMian 2 года назад

    Excellent, Derrick!!!

  • @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.

  • @HopeUnveiled
    @HopeUnveiled 2 года назад

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

  • @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.

  • @abhinavkannojia1053
    @abhinavkannojia1053 4 года назад +1

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

  • @colorfuljosh
    @colorfuljosh 2 года назад

    Great video, thanks from Australia dude

  • @DanielArturoSanchezDeoleo
    @DanielArturoSanchezDeoleo 2 года назад

    thank you greetings from the Dominican Republic

  • @lancehoward1609
    @lancehoward1609 4 года назад

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

  • @Sagar_Tachtode_777
    @Sagar_Tachtode_777 4 года назад +2

    Awsome Job. Thank you Derrick...

  • @Reptar4000
    @Reptar4000 3 года назад

    You’re the man. Need more content!

  • @amnksngh29
    @amnksngh29 2 года назад

    Thanks Derrick!

  • @vijaypingale7
    @vijaypingale7 3 года назад

    Thanks man ! Great video!

  • @renyildiz5155
    @renyildiz5155 3 года назад

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

  • @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.
      ruclips.net/video/ljtrRW69z10/видео.html

  • @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

  • @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.

  • @fbzz64
    @fbzz64 4 года назад

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

  • @3h936
    @3h936 3 года назад

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

  • @just5two163
    @just5two163 2 года назад

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

  • @adrianmisak07
    @adrianmisak07 2 года назад

    thank you, this was great

  • @vamshidharr3434
    @vamshidharr3434 Год назад

    Awesome !!!

  • @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.

  • @AdityaBolt
    @AdityaBolt 4 года назад +2

    loved the video..

  • @anilct6749
    @anilct6749 3 года назад

    Thanks man. Much appreciated!

    • @deepquest
      @deepquest 2 года назад

      All about S3 Bucket;
      Subscribe for more such videos.
      ruclips.net/video/ljtrRW69z10/видео.html

  • @DonellGrace
    @DonellGrace 4 года назад

    Amazing. Well done

  • @stahmedpendragonguinevere2711
    @stahmedpendragonguinevere2711 4 года назад +1

    Keep up the good stuff matey!

  • @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 .

  • @carlbjorklund2703
    @carlbjorklund2703 4 года назад +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?

  • @rajkishan3690
    @rajkishan3690 3 года назад

    Well Explained.

  • @GG1440
    @GG1440 3 года назад

    This is very helpful, thank you.

    • @deepquest
      @deepquest 2 года назад

      All about S3 Bucket;
      Subscribe for more such videos.
      ruclips.net/video/ljtrRW69z10/видео.html

  • @keithsmalling9723
    @keithsmalling9723 2 года назад

    Brilliant tutorial well explained

  • @ncTechlearning
    @ncTechlearning 4 года назад +3

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

  • @yaseenimuhammadraja9461
    @yaseenimuhammadraja9461 3 года назад

    Great video 👍

  • @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

  • @AshisRaj
    @AshisRaj Год назад

    Excellent

  • @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?

  • @MuhammadAli-zg2nw
    @MuhammadAli-zg2nw 3 года назад

    you deserve the like and sub

  • @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

  • @sathishsuganya2013
    @sathishsuganya2013 2 года назад

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

  • @amatulathok597
    @amatulathok597 2 года назад

    Thank's a lot dude

  • @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.
      ruclips.net/video/ljtrRW69z10/видео.html

  • @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?

  • @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?

  • @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)

  • @lotusmojo
    @lotusmojo 3 года назад

    Awesome

  • @alejandroaparicioguerra1818
    @alejandroaparicioguerra1818 3 года назад

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

  • @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?

  • @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?

  • @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)

  • @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!

  • @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?

  • @granand
    @granand 4 года назад

    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.

  • @XandoFootball
    @XandoFootball 3 года назад

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

  • @mainakbiswas6541
    @mainakbiswas6541 3 года назад

    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.

  • @surajiyer7406
    @surajiyer7406 3 года назад

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

  • @xin6129
    @xin6129 4 года назад +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.

  • @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

  • @parag4982
    @parag4982 3 года назад

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

  • @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 ?

  • @BehruzbekOtayev
    @BehruzbekOtayev 4 года назад

    Thank you

  • @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)

  • @harisantho
    @harisantho 2 года назад

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

  • @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?

  • @AnAyahaDay
    @AnAyahaDay 4 года назад

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

  • @willd0g
    @willd0g 4 года назад

    That’s great

  • @rahulmeena79
    @rahulmeena79 10 месяцев назад

    I uploaded files to S3 yeahhhhhhh

  • @MrPawan412
    @MrPawan412 3 года назад

    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.
      ruclips.net/video/ljtrRW69z10/видео.html

  • @raja4usekhar
    @raja4usekhar 3 года назад

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

  • @celsoalbertoreyesugalde4792
    @celsoalbertoreyesugalde4792 4 года назад

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

  • @rishvish
    @rishvish 2 года назад

    Can we download files from AWS in any similar way?

  • @gabopython
    @gabopython Год назад

    good video

  • @MichaelDavis-hk8vl
    @MichaelDavis-hk8vl 3 года назад

    Can I do this from Juypter Notebook?

  • @senthilcm
    @senthilcm 3 года назад

    Hi How can read the files browser for S3

  • @omkarbabar4420
    @omkarbabar4420 3 года назад

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

  • @jamilmjq
    @jamilmjq Год назад

    need idea how to copy files to s3 bucket in UC4

  • @gregf9160
    @gregf9160 4 года назад

    More on AWS and Python would be great!

  • @aajadsingh8050
    @aajadsingh8050 4 года назад

    Nice

  • @rickramirez94
    @rickramirez94 4 года назад

    Do a aws series !

  • @ajtam05
    @ajtam05 2 года назад

    Are you able to download, as well?

  • @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

  • @rattaponinsawangwong5482
    @rattaponinsawangwong5482 4 года назад

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

  • @wilianuhlmann5284
    @wilianuhlmann5284 3 года назад

    how to copy file in other directory?

  • @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..

  • @mwredfern
    @mwredfern 2 года назад

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

  • @mayukhchattaraj5552
    @mayukhchattaraj5552 4 года назад

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

  • @mukeshk2553
    @mukeshk2553 Год назад

    Bucket to bucket automation how to do

  • @ai.simplified..
    @ai.simplified.. 3 года назад

    I dont know what has happend that your chanel been unsubcripted

  • @pepex90
    @pepex90 3 года назад

    Thank Derrick !!