Hey everyone! Quick Example on how we can automate the handling of different files to automatically be uploaded to amazon S3.
Sorry for the green screen issues – hope they’re not too bothersome!
Few notes on Creating IAM users:
– Create a user
– Enable programmatic access
– Add user to a group with the desired permissions
( In this video we used S3, but you can use this client with many more aws services. You would assign those permissions to a group the same way as we do the s3 permissions here)
– Copy access and secret access keys
Legit crazy that I’m writing this with 11,000+ subscribers — How awesome! I write these notes in the descriptions of most of my videos, and I still remember writing it with 250 subscribers and being so thankful. I’m honored I get to create these videos and hopefully they’re of use to some of you. Thank you for all the support and kind words throughout the last year!
Support the Channel on Patreon —
Join The Socials —
Reddit –
FB –
Insta –
Twitter –
LinkedIn –
GitHub –
*****************************************************************
Full code from the video:
from secrets import access_key, secret_access_key
import boto3
import os
client = boto3.client(‘s3’,
aws_access_key_id = access_key,
aws_secret_access_key = secret_access_key)
for file in os.listdir():
if ‘.py’ in file:
upload_file_bucket = ‘youtube-dummy-bucket’
upload_file_key = ‘python/’ + str(file)
client.upload_file(file, upload_file_bucket, upload_file_key)
Packages (& Versions) used in this video:
boto3 1.11.13
os
*****************************************************************
Code from this tutorial and all my others can be found on my GitHub:
Check out my website:
If you liked the video – please hit the like button. It means more than you know. Thanks for watching and thank you for all your support!!
— Channel FAQ —
What text editor do you use?
Atom –
What Equipment do you use to film videos?
What editing software do you use?
Adobe CC –
Premiere Pro for video editing
Photoshop for images
After Effects for animations
Do I have any courses available?
Yes & always working on more!
Where do I get my music?
I get all my music from the copyright free Youtube audio library
Let me know if there’s anything else you want answered!
————————-
Always looking for suggestions on what video to make next — leave me a comment with your project! Happy Coding!