Automate AWS EC2 with Python | DevOps Coding Challenge

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ส.ค. 2024
  • In this video, I'll give you a fun, hypothetical coding task to complete from your Team Lead.
    This will be a fun exercise for those:
    1. Learning Python and AWS
    2. Are new to, or learning, DevOps
    3. Looking for practice Python/AWS automation examples
    I'll give you the scenario, give an overview of the architecture, and then you can either try it out yourself, or you can follow along with me as I build out the solution.
    Let me know if you'd like to see more videos like this.
    ** Python Course Recommendations **
    The Modern Python 3 Bootcamp - geni.us/yFPQ85e
    100 Days of Code: The Complete Python Pro Bootcamp for 2023 - geni.us/n80Kf
    Mastering Boto3 and Lambda Functions - geni.us/oNFz9A
    Timestamps
    00:00 Intro
    00:38 The Challenge
    01:19 Pseudocoding the architecture
    03:16 Creating the Lambda
    03:40 Setting the Lambda permissions
    05:11 Writing Lambda with Python and Boto3
    14:23 Creating the Eventbridge cron
    16:13 Outro
    Remember to DELETE your EC2 instances when done
    ** My Coding Blueprints **
    Learn to Code Web Developer Blueprint - geni.us/HoswN2
    AWS/Python Blueprint - geni.us/yGlFaRe
    ** I write regularly **
    travis.media
    ** FREE EBOOKS **
    📘 travis.media/ebooks
    LET'S CONNECT!
    📰 LinkedIn ➔ / travisdot. .
    🐦 Twitter ➔ / travisdotmedia​
    🙋🏼‍♂️ Website ➔ travis.media
    #awspython #awsdevops #pythonprogramming
    ** Some of the links in this description may be affiliate links that I may get a little cut of. Thank you.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 31

  • @stevedmcwinner3169
    @stevedmcwinner3169 ปีที่แล้ว +3

    Hello Travis I'm a newbie in the DevOps world and I do like this kind of content. Thank you very much!

  • @Cevap05
    @Cevap05 ปีที่แล้ว +1

    Hey there Travis! I found your TH-cam Channel when I was looking for K8s tutorials. Found your recommendation on that Udemy course. I have been so preoccupied with it (and pleased of course) that I had to ensure I came back to give you thanks. Also, this was a great video. Please continue a series of "Challenges" that would be beneficial to real world Devops challenges. This content is great. Thank you again!

  • @venkatprasath01
    @venkatprasath01 10 หลายเดือนก่อน

    That’s a simple but very useful video to start your lambda functions and EventBridge trigger. Thanks Travis!! This is the most underrated channel for learning AWS automation!! 😅😅

  • @harrydatgoat6719
    @harrydatgoat6719 ปีที่แล้ว

    Thank you Travis! This is great for me to kick start my devops learning journey.

  • @srfloyd
    @srfloyd ปีที่แล้ว +1

    Great video Travis, I am going to test it out at my lab. More like this one please!

  • @tattarrrrattat
    @tattarrrrattat ปีที่แล้ว

    Yes, more of these. Very practical.

  • @ThaEzioAuditore
    @ThaEzioAuditore ปีที่แล้ว +1

    wow ! brilliant stuff ! this is a nice series ! I hope you continue on with it 😊

  • @kazishahria1442
    @kazishahria1442 2 หลายเดือนก่อน

    Thank you so much! I learned something new.

  • @harsh8429
    @harsh8429 5 หลายเดือนก่อน

    This was excellent Travis!! Waiting for more new AWS Python challenges like these!!

  • @healthvative5315
    @healthvative5315 หลายเดือนก่อน

    Super!! I find that your tutorial easy to follow. Wonder if you can do a similar tutorial to check if instances are running at off working hours base on the local time and stop them. Thanks again Travis!

  • @neerajadsul
    @neerajadsul 9 หลายเดือนก่อน

    Really valuable, concise and practical! thanks.

  • @ReivsonLopes
    @ReivsonLopes ปีที่แล้ว

    You always have the best explanations how to do the things don!!

  • @alexnovik
    @alexnovik ปีที่แล้ว

    Cool! Thank you!

  • @aldo3g
    @aldo3g 4 หลายเดือนก่อน

    Awesome!!

  • @hallielam
    @hallielam ปีที่แล้ว

    more devops aws + python activities!!!! thank you :)! This was very helpful

  • @ramu7762
    @ramu7762 ปีที่แล้ว

    Thanks Travis. Awesome video.. Please do more automation videos

  • @PANDApoopish
    @PANDApoopish 11 หลายเดือนก่อน

    Thanks Travis, more python stuff please

  • @biznesmen8295
    @biznesmen8295 ปีที่แล้ว

    Love it man

  • @gurucharan976
    @gurucharan976 2 หลายเดือนก่อน

    This is awesome

  • @leeparker6200
    @leeparker6200 ปีที่แล้ว

    Great video. Is this part of a series? Would love to see more lambda automation/devops videos

  • @blevenzon
    @blevenzon ปีที่แล้ว +4

    Highly recommend deploying instances with terraform that way you can just use terraform destroy to clean up all your created resources after you are done.

  • @estebanlopez5372
    @estebanlopez5372 ปีที่แล้ว

    I want another 1.000 videos related to this :D ... Thanks

  • @Doermalove
    @Doermalove ปีที่แล้ว

    Hi Travis, I just found your videos and your Chanel. A lot of good videos 👍👍🤝. Thanks for all these videos.
    Please I have a question on this one.
    Is there a way that we can do this such as if the instance is stopped it will trigger lambda to start?
    Also if we decide to stop the instance ourself, how will we to to avoid lamdba to start the instance?
    Thank you again.

  • @paologreco9412
    @paologreco9412 ปีที่แล้ว

    Hi Travis, an thank you for the endless stream of tips and tricks you're sharing with us. May I ask you an off-topic question? Are your "5 Steps to Become a Freelance Web Developer in 2019" valid to this day? Do you think ai will make web developers useless?
    Thank you again for your attention, have a good day.

  • @noned5308
    @noned5308 11 หลายเดือนก่อน +1

    Hi Travis great video, I am trying to automate the proccess of downloding CSV files from AWS Billing and uploading them to S3 using python and lambda. The first part is where I am struggling. If you know how this can be done I would appreciate your help a lot. Thanks for all the great videos.

    • @TravisMedia
      @TravisMedia  11 หลายเดือนก่อน +1

      Does this help? This looks there is a BIlling API to grab data from - docs.aws.amazon.com/cost-management/latest/userguide/ce-api.html
      boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ce.html if you are using Python

    • @TravisMedia
      @TravisMedia  11 หลายเดือนก่อน +1

      Oooh check this out. Looks like someone created a Lambda to do this. You could take a look and tweak into your own automation. github.com/aws-samples/aws-cost-explorer-report

  • @sanathkumarj3547
    @sanathkumarj3547 ปีที่แล้ว

    what if someone deletes this Lambda Function LOL