How to Create a VPC and Subnets in AWS | AWS Tutorial for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ค. 2024
  • In a prior video ( • Amazon/AWS VPC (Virtua... ), we learned the basic concepts of a Virtual Private Cloud, or VPC, in AWS. And in a subsequent video ( • How IP Addressing Work... ), we learned how IP addressing works in AWS-private IPs, public IPs, elastic IPs and how CIDR ranges work. In this video, we tie it all together by creating a VPC and two subnets using the AWS Console.
    In a hands-on demo, I’ll show you how to create a VPC in a few simple steps. Then, after reviewing some basics concepts of subnets, we create two subnets within the VPC, using the appropriate CIDR ranges based on the VPC’s CIDR range.
    🌟🌟If you’re interested in getting AWS certifications, check out these full courses. They include lots of hands-on demos, quizzes and full practice exams. Use FRIENDS10 for a 10% discount!
    - AWS Certified Cloud Practitioner: academy.zerotomastery.io/a/af...
    - AWS Certified Solutions Architect Associate: academy.zerotomastery.io/a/af...
    You might also be interested in these videos:
    • VPC Basics: • Amazon/AWS VPC (Virtua...
    • IP Addressing in AWS: • How IP Addressing Work...
    00:00 - Creating a Virtual Private Cloud (VPC) using the AWS Console
    01:40 - Adding additional CIDR blocks to a VPC
    02:19 - Reviewing the basic concepts of subnets
    03:32- Reserved IP addresses in AWS
    04:18 - Creating two subnets in our custom VPC
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Really appreciate the time that you and others take in preparing this type of material. Thank you.

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

      My pleasure! Glad it was helpful. Thanks so much for watching! 😊

  • @TuanDinh-d6r
    @TuanDinh-d6r วันที่ผ่านมา

    Your video is very helpful and easy to understand. Thank you for sharing

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  3 ชั่วโมงที่ผ่านมา

      Glad it was helpful! Thanks for watching, and for the nice comment! 🙏🌟🥰

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

    Of all youtubers I have seen, by far you are the most knowledgable and SME of all

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

      Aww, you're very kind! Thanks for watching and for the nice comment! :)

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

    At the time of writing this comment, I have put in a total of 8 hours watching different videos and still don't understand IPv4 and CIDR until I watch this video. Thank you very much. You gained a subscriber today.

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

      Welcome to the channel, Taiwo! This is the nicest comment EVER! 🥰 I'm so glad it helped. I also found IP addressing really confusing when I first started learning it, so I feel your pain!

  • @neviswarren
    @neviswarren 9 หลายเดือนก่อน +1

    Thank you. Very clear instruction and explanations. Much appreciated.

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

    Congrats. You were very clear and to the point. I understood. Thanks

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

    I found, your work really contains important in-sites, thanks

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

    Thank you so much Tiny Tech Tutorial. I got the basic idea about AWS infrastructure from this channel which is very informative and easy to understand. I have cleared my AWS Solution Architect exam. You are simply Awesome!!!

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

      WOOHOOOOOO!!! 💪🔥😊🌟😎 This makes me so happy! CONGRATS, and thanks for the support!!

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

      Congratulations on clearing the exam 🎉🎉🎉

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

    simply...amazing teacher one more time...Hello from luxembourg. Thank u again

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

    Thank you for such a nice and insightful video. Very informative and easy to follow.

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

    These videos are gold. Thank you!

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

    I am watching all the ads just a small thanks to pay you. Great tutorials .Thanks

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

    Thank you vary much for your such a good and simlpe video. You have decribed it in a very simple way. I am waiting for a new videos.

  • @BoomWahDis
    @BoomWahDis 10 หลายเดือนก่อน +2

    Your tutorials are so clean,simple and very informative.I thank you for taking your time give us this great training.

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

      You bet! Thanks for supporting the channel!! 🙏🤓🌟

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

    Awesome & thank you

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

    thank you very much I appreciate you very much

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

      I appreciate YOU supporting the channel! 😊🙏🌟

  • @user-fk4co4nu1k
    @user-fk4co4nu1k 9 หลายเดือนก่อน

    nice.. thank you

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

    THANK YOU !!

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

    Thanks fo the videos. It helped me understand the concepts of CIDR
    I have a doubt though. While creating a VPC, there is no constraints aws is imposing on what CIDR we can select. So, what if multiple customers choose to have CIDR in same range? Who gets to create resources in that range.
    Again , thanks in advance!!

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

      Hi Mayank! 👋 I'm so glad the video helped. 😊
      As far as addressing and overlap, AWS VPCs are isolated from each other, even across different accounts. This means that each AWS customer can define their VPCs using any CIDR block they choose, including those already used by another customer in a different VPC, even if those VPCs are in the same AWS region.
      So even if you choose the same range as another customer, there won't be any conflicts. Hope that helps! 😊

  • @howards5205
    @howards5205 10 หลายเดือนก่อน +1

    Hi Amber. I understand that you created two subnets, one named "public-subnet-2a" and the other "private-subnet-2b". How does one subnet become public while the other become private? Are there additional settings that must be configured?

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  10 หลายเดือนก่อน +1

      Hi Howard! 👋 What makes a subnet "public" is the fact that it's attached to an Internet Gateway so traffic can get in and out to "the world." A private subnet doesn't have a connection to an Internet Gateway (so all traffic stays "private," inside of AWS). But beyond that, the setup of the subnets is the same (you add the Internet Gateway connection after the initial creation of the subnet).
      I have another video here that explains it a bit, but we don't actually go build it out: th-cam.com/video/HbTfONoekyM/w-d-xo.html. If you want to do some hands-on work, this tutorial looks pretty good: jasonwatmore.com/post/2021/05/30/aws-create-a-vpc-with-public-and-private-subnets-and-a-nat-gateway.
      Hope that helps! 😊

  • @emmanuelobileye5643
    @emmanuelobileye5643 6 หลายเดือนก่อน +1

    Hi thank you for the time you put into creating these videos. After creating the subnets, each subnets can then contain EC2 instances right?

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  6 หลายเดือนก่อน +1

      Sorry for the slow response, but yes, you're correct! 👍

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

    Awesome Awesome Awesome!!! Thank you again for making things so simple and making my studies way more easy! I really appreciate you! Cheers!!

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

      Sam - I think you're my first official superfan! I appreciate YOU!! :) So glad you're enjoying the videos.

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

      @@TinyTechnicalTutorials Oh for sure I'm a super fan! Most people don't understand the pressure and focus it takes to get these certs and you're most certainly taking the edge off!!😁

  • @Shreya-ff9dx6fv1s
    @Shreya-ff9dx6fv1s ปีที่แล้ว

    I have used Ipv4 for vpc is 10.0.0.0/26 and For 1 subnet it's 10.0.0.0/27 and for other subnet it's 10.0.1.0/27 but still getting error of address is not within cidr address from vpc

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  ปีที่แล้ว +2

      Hi! If you go out to cidr.xyz and plug in the range from your VPC (10.0.0.0/26), you'll see that the first usable IP is 10.0.0.1 and the last usable IP is 10.0.0.62. The third tuple (where the "X" is here: 10.0.X.0) is not able to use a "1" there. Meaning the range used for subnet 2 (10.0.1.0/27) falls outside of the range of the VPC's CIDR range.
      If you wanted to use the same range you have for the VPC (10.0.0.0/26), you could split the available addresses equally, like this:
      -First subnet CIDR range: 10.0.0.0/27. This will have IP addresses from 10.0.0.0 to 10.0.0.31, with 30 usable IP addresses.
      -Second subnet CIDR range: 10.0.0.32/27. This will have IP addresses ranging from 10.0.0.32 to 10.0.0.63, with 30 usable IP addresses.
      But remember that AWS reserves the first four and last one IP addresses in the range, so you're not able to assign those to a resource. You can read more about that here: docs.aws.amazon.com/vpc/latest/userguide/subnet-sizing.html.
      Also, I've got a video here that goes into more details about addressing and figuring out the ranges and such: th-cam.com/video/kRDtwr1dPpw/w-d-xo.html.
      Hope that helps! 😊 And sorry for the slow reply...this comment got stuck in a filter for some reason.

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

    AWS itself consider those 5 left out IPs or we have to specify them at the time of creation of our subnets?

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

      Hi Jyoti! No, AWS automatically reserves those IPs for themselves. You don't need to specifically do anything with them...just know that they're not available for you to use. 😊

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

      @@TinyTechnicalTutorials thanks 👍🏻

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

    Amazing video. Sorry I am a new dev and am curious to know which tool do you use to draw these network infrastructure diagrams ?

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  8 หลายเดือนก่อน +1

      Thanks so much, Avi!! 🙏🌟🤓 For diagrams, you can download the official AWS icons here: aws.amazon.com/architecture/icons/. And then I just put them together in PowerPoint...no fancy diagramming tools here. 😁

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

      @@TinyTechnicalTutorials Thankyou so much for reply. Amazing content. I am learning a lot :D PLease keep it up and have a nice day

    • @TinyTechnicalTutorials
      @TinyTechnicalTutorials  8 หลายเดือนก่อน +1

      Thanks for the kind words, Avi!! 🥰

  • @sam3826
    @sam3826 8 หลายเดือนก่อน +1

    can we have videos on Docker & Code pipeline & Nginix in Detail

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

      Thanks for the suggestions, Abhijeet! 👍 I'll add these to my list for future videos. FYI, I do have a video about developer tools (including Code Pipeline) here, but it's pretty high level: th-cam.com/video/iGCJ-N7bPX0/w-d-xo.html.