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.
  • НаукаНаука

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

  • @kicknotes
    @kicknotes 11 месяцев назад +5

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

  • @sudomoon
    @sudomoon Год назад +9

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

  • @manutorres3241
    @manutorres3241 Год назад +7

    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.

  • @reemthebarber1900
    @reemthebarber1900 5 месяцев назад +1

    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.

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

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

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

    What fantastic work. Thanks a lot.

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

    Thank you so much sempai! ❤ always amazing resources

  • @user-bs1gu5me4l
    @user-bs1gu5me4l 5 месяцев назад +1

    you are the awesome instructor

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

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

  • @sureshsurendran737
    @sureshsurendran737 8 месяцев назад

    Nicely explained. Thanks for the video

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

    This was awesome. Thanks so much

  • @healthvative5315
    @healthvative5315 15 дней назад

    Thanks for a great content as always

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

  • @nusetorsetsofia8729
    @nusetorsetsofia8729 4 месяца назад

    Great video. Lemme go try it out 🤩

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

  • @musicbox6574
    @musicbox6574 11 месяцев назад

    Glorious

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

    We need more videos about that

  • @msasake
    @msasake 6 месяцев назад

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

  • @user-mf1xr5ki9j
    @user-mf1xr5ki9j 3 месяца назад

    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?

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

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

    • @reemthebarber1900
      @reemthebarber1900 5 месяцев назад

      i had to manually increase my screen, instead of the RUclips fullscreen vid. I had difficulty as well. But my adjustments made it readable.

  • @user-vr1jd5sy2x
    @user-vr1jd5sy2x 3 месяца назад

    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.

  • @owenzmortgage8273
    @owenzmortgage8273 Год назад +2

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

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

    😗😗😗

  • @sbsafi4981
    @sbsafi4981 2 месяца назад

    It takes 10 years for me to learn this ☹

  • @gregoryallen1122
    @gregoryallen1122 Месяц назад

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