Using Python to Automate AWS Services | Lambda and EC2

preview_player
Показать описание
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. 👉

** Get ONE FREE Month on Skillshare. Learn Anything (preferably code 😁) **

** I write regularly **

** FREE EBOOKS **

LET'S CONNECT!

#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...

kicknotes
Автор

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.

manutorres
Автор

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

sudomoon
Автор

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.

reemthebarber
Автор

Awesome!! Claps from Brazil!! You Rocks!!

ReivsonLopes
Автор

Thank you so much sempai! ❤ always amazing resources

Ciommi
Автор

Great video, I just got my CCP and it's so nice to get hands-on experience right off the bat

MrRin_
Автор

Nicely explained. Thanks for the video

sureshsurendran
Автор

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.

fuadhassan
Автор

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!

tomasguvits
Автор

Thank you! So it’s only showing as user instead of the IAM user’s name.. anyway to correct this?

msasake
Автор

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)

mfxrkij
Автор

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.

vrjdsyx
Автор

Wait is this Python or JSON that’s being used?

pect
Автор

Great content! but a black screen with small font, it's very hard to see it clearly.

Eagle_Ridaz
Автор

Unfortunately, can’t see anything clearly from the screen you shared. Do you realize that

owenzmortgage
Автор

It takes 10 years for me to learn this ☹

sbsafi
Автор

Maybe I'm slow, but he's going too fast for me.

gregoryallen