Using Python to Automate AWS Services | Lambda and EC2
HTML-код
- Опубликовано: 28 июн 2024
- In this video, we'll look at how to use Python to automate services in AWS.
Using a real-world example, we'll utilize CloudTrail to capture AWS events. We'll set a rule in EventBridge to trigger a Lambda function whenever a user creates a new AWS EC2 instance. Then we'll use Python within that Lambda to tag that instance with the name of the user that created it. This way, a company can always keep track of who created what sever by having this dynamic automation in place.
Python is a very popular language of choice with AWS automation and DevOps practices. After viewing this video, you'll have a good idea of how it can be utilized to save time in implementing AWS best practices.
Timestamps
0:00 - Intro
0:33 - What we're building
2:55 - Create Lambda function
4:14 - Create Trail and EventBridge Rule
9:25 - Boto3 and Writing Python Code
19:05 - Troubleshooting
If you liked this tutorial, enjoy programming, and are looking to take it seriously, check out my coding blueprints. They will take you from complete beginner to job-ready. 👉
Learn to Code Web Developer Blueprint - geni.us/HoswN2
AWS/Python Developer Blueprint - geni.us/yGlFaRe
** Get ONE FREE Month on Skillshare. Learn Anything (preferably code 😁) **
🎓 geni.us/DqB7m
** I write regularly **
travis.media
** FREE EBOOKS **
📘 travis.media/ebooks
LET'S CONNECT!
📰 LinkedIn ➔ / travisdot. .
🐦 Twitter ➔ / travisdotmedia
🙋🏼♂️ Website ➔ travis.media
#boto3 #pythonprogramming #aws
** Some of the links in this description may be affiliate links that I may get a little cut of. Thank you. Наука
Good video! I like the relatively unscripted nature... When an error pops up, it's always good to see it dug into in real time...
Your content is so high quality and accurate, I wonder why youtube algorithm doesn't pick up your channel.
I have seen many channels and read many computer science books, and I loved your content just in 1 video. Hats off sir !!
Thank you! Glad it was helpful
Awesome content. Great to get to practice real AWS outside from certification focused courses. One side note about this one: for those who want to stay on the free tier side, keep in mind that CloudTrail alone will reach S3 requests limit in a matter of hours. Also, though not as inmmediate, remember not to keep your EC2 instances running forever.
Great video. I am glad that you kept everything recording, like a live stream, when you were running into errors. This also helped us viewers watching you troubleshoot.
Great video, I just got my CCP and it's so nice to get hands-on experience right off the bat
What fantastic work. Thanks a lot.
Thank you so much sempai! ❤ always amazing resources
you are the awesome instructor
Awesome!! Claps from Brazil!! You Rocks!!
Nicely explained. Thanks for the video
This was awesome. Thanks so much
Thanks for a great content as always
Thanks so much. Helpful as always. It would be great to have a career path guide for software testers. Essential courses to do in Udemy one after another to become a good software tester.
Great video. Lemme go try it out 🤩
Hi Travis! Thanks for that fantastic demo! One question, after two days of having set everything up just like you did, I received a warning from Amazon about "exceeding 85% of the usage limit of 2,000 Put, Copy, Post or List Requests of Amazon S3". What's that all about, and how can I keep practicing without getting billed? Thanks man, awesome channel!
Glorious
We need more videos about that
Thank you! So it’s only showing as user instead of the IAM user’s name.. anyway to correct this?
Thank you for this video!
(By the way is anybody getting a 'load failed' error when hitting the "create function" button at 3:15 ? I am using a root account)
Wait is this Python or JSON that’s being used?
Great content! but a black screen with small font, it's very hard to see it clearly.
i had to manually increase my screen, instead of the RUclips fullscreen vid. I had difficulty as well. But my adjustments made it readable.
I solved the final challenge with less than 20 lines of code. I checked and stored the 5 conditions in 5 variables which are Boolean. Just one IF ELSE to check if all 5 are True. If its true it breaks from the main while loop and message password is right else it ask the user to try again.
Unfortunately, can’t see anything clearly from the screen you shared. Do you realize that
Use your TV 😅
😗😗😗
It takes 10 years for me to learn this ☹
Maybe I'm slow, but he's going too fast for me.