Using Python to Automate AWS Services | Lambda and EC2

  Рет қаралды 27,123

Travis Media

Travis Media

Күн бұрын

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.

Пікірлер: 29
@kicknotes
@kicknotes Жыл бұрын
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...
@manutorres3241
@manutorres3241 Жыл бұрын
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.
@sudomoon
@sudomoon Жыл бұрын
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 !!
@TravisMedia
@TravisMedia Жыл бұрын
Thank you! Glad it was helpful
@reemthebarber1900
@reemthebarber1900 6 ай бұрын
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.
@jaaferbennasr7483
@jaaferbennasr7483 Жыл бұрын
What fantastic work. Thanks a lot.
@MrRin_
@MrRin_ Жыл бұрын
Great video, I just got my CCP and it's so nice to get hands-on experience right off the bat
@Ciommi
@Ciommi Жыл бұрын
Thank you so much sempai! ❤ always amazing resources
@user-bs1gu5me4l
@user-bs1gu5me4l 6 ай бұрын
you are the awesome instructor
@sureshsurendran737
@sureshsurendran737 9 ай бұрын
Nicely explained. Thanks for the video
@blevenzon
@blevenzon Жыл бұрын
This was awesome. Thanks so much
@ReivsonLopes
@ReivsonLopes Жыл бұрын
Awesome!! Claps from Brazil!! You Rocks!!
@healthvative5315
@healthvative5315 Ай бұрын
Thanks for a great content as always
@nusetorsetsofia8729
@nusetorsetsofia8729 5 ай бұрын
Great video. Lemme go try it out 🤩
@fuadhassan1764
@fuadhassan1764 Жыл бұрын
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.
@musicbox6574
@musicbox6574 Жыл бұрын
Glorious
@tomasguvits9478
@tomasguvits9478 Жыл бұрын
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!
@anashamdan5237
@anashamdan5237 Жыл бұрын
We need more videos about that
@msasake
@msasake 7 ай бұрын
Thank you! So it’s only showing as user instead of the IAM user’s name.. anyway to correct this?
@user-mf1xr5ki9j
@user-mf1xr5ki9j 4 ай бұрын
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)
@pect5032
@pect5032 Жыл бұрын
Wait is this Python or JSON that’s being used?
@owenzmortgage8273
@owenzmortgage8273 Жыл бұрын
Unfortunately, can’t see anything clearly from the screen you shared. Do you realize that
@gurugamer8632
@gurugamer8632 Жыл бұрын
Use your TV 😅
@Eagle_Ridaz
@Eagle_Ridaz Жыл бұрын
Great content! but a black screen with small font, it's very hard to see it clearly.
@reemthebarber1900
@reemthebarber1900 6 ай бұрын
i had to manually increase my screen, instead of the KZbin fullscreen vid. I had difficulty as well. But my adjustments made it readable.
@user-vr1jd5sy2x
@user-vr1jd5sy2x 4 ай бұрын
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.
@Peacefulonetv
@Peacefulonetv Жыл бұрын
😗😗😗
@sbsafi4981
@sbsafi4981 3 ай бұрын
It takes 10 years for me to learn this ☹
@gregoryallen1122
@gregoryallen1122 2 ай бұрын
Maybe I'm slow, but he's going too fast for me.
AWS Networking Basics For Programmers | Hands On
27:14
Travis Media
Рет қаралды 111 М.
Introduction to AWS Networking
30:02
AWS with Chetan
Рет қаралды 433 М.
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 28 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 97 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 84 МЛН
How to install a Python Dependency on AWS Lambda (2023)
7:45
Tech with Hitch
Рет қаралды 38 М.
Automate AWS EC2 with Python | DevOps Coding Challenge
16:25
Travis Media
Рет қаралды 16 М.
AWS Lambda Python functions with a database (DynamoDB)
25:12
pixegami
Рет қаралды 26 М.
My Career Advice For Anyone Feeling Stuck In Life
7:26
Travis Media
Рет қаралды 99 М.
Intro to AWS - The Most Important Services To Learn
50:07
Be A Better Dev
Рет қаралды 400 М.
Create Your First AWS Lambda Function | AWS Tutorial for Beginners
12:44
Tiny Technical Tutorials
Рет қаралды 133 М.
10 Udemy Courses Every Developer SHOULD Own (NOT just coding)
19:53
Travis Media
Рет қаралды 877 М.
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
How to use Python with the AWS Boto3 SDK - Hands-On Introduction
16:16
Digital Cloud Training
Рет қаралды 7 М.
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 3 МЛН
ВАЖНО! Не проверяйте на своем iPhone после установки на экран!
0:19
ГЛАЗУРЬ СТЕКЛО для iPhone и аксессуары OTU
Рет қаралды 6 МЛН
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 2,1 МЛН
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 28 МЛН
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 7 МЛН