Use Terraform Module to Build a 3 Tier AWS Network VPC

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 100

  • @AOSNote
    @AOSNote  2 роки тому

    ----------------------------------------------------------------------------
    AWS Hands-on Projects for Beginners👇
    ----------------------------------------------------------------------------
    ✔ Getting Started on AWS Cloud: www.aosnote.com/offers/qq2dokAR/checkout
    ✔ Deploy a Static Website: www.aosnote.com/offers/T7wgpKti/checkout
    ✔ Deploy a WordPress Website: www.aosnote.com/offers/xFzqby9z/checkout
    ✔ Deploy a Dynamic E-commerce Website: www.aosnote.com/offers/gYsmFBVg/checkout
    ✔ Deploy a Dynamic Website with Terraform: www.aosnote.com/offers/pjYL9ybL/checkout
    ✔ Deploy a Static Website with Ansible: www.aosnote.com/offers/WgGk2NUk/checkout
    ✔ Deploy a Website Docker, AWS ECR, and AWS ECS: www.aosnote.com/offers/5hthWgH4/checkout
    ✔ Deploy a Dynamic Website with CloudFormation: www.aosnote.com/offers/zFhSEiuQ/checkout
    ----------------------------------------------------------------------------
    Projects Coming Soon 👇
    ----------------------------------------------------------------------------
    ✔ Deploy a Website with Terraform Modules, AWS ECR, and AWS ECS
    ✔ Create CICD to Deploy a Dynamic Website
    ✔ Python and AWS Lambda Project
    ----------------------------------------------------------------------------
    Bootcamp 👇
    ----------------------------------------------------------------------------
    6 Months Cloud/DevOps Bootcamp: www.aosnote.com/offers/SZFctCkU/checkout
    ----------------------------------------------------------------------------
    Website: www.aosnote.com/
    Courses: www.aosnote.com/store
    ----------------------------------------------------------------------------
    Thank you🙏. If you find this video valuable, please don't forget to like, subscribe, and share to support this channel 👍

  • @ronh8391
    @ronh8391 9 місяців тому +1

    I am a beginner in Terraform. This is an excellent series of video lessons. Very well presented. Thank you!

  • @pierrebeats9820
    @pierrebeats9820 7 місяців тому +1

    This is literally the best tutorial i have seen so far on this topic. super clear, concise and easy to follow!

  • @amirajkar
    @amirajkar 2 місяці тому

    Excellent series. I improved on this script to make it DRY (don't repeat yourself) by using map of subnets and using one resource block for subnet vs six different repeated sunet resources.

    • @constantineukah1455
      @constantineukah1455 Місяць тому

      Did same but use 3 resource blocks for public, webserver and DB subnet

  • @Taurusali786
    @Taurusali786 Рік тому +1

    This is the best video on youtube to spin up vpc, awesome training. Azeez i really appreciate your effort to create this vide.

  • @ahmedtauseef
    @ahmedtauseef Рік тому +1

    Done in a very clean and professional manner. I didn't face even one typo

  • @nguyenphithoaihung
    @nguyenphithoaihung Рік тому

    I know Valentines day has passed but can i say I love you!? this is right to the point with precise instruction and explaination! Thank you

  • @anilkommalapati6248
    @anilkommalapati6248 Рік тому +2

    This is one stop and best tutorial ever I found. Really great work and thanks a MILLION.
    You are awesome. God bless you

  • @BarnabasLew
    @BarnabasLew 2 роки тому +2

    I am very blessed to learn from you. You are very structure in the presentation and it is very good (for me)

  • @smkcookingchannel4217
    @smkcookingchannel4217 2 роки тому +11

    Hey i have tried this whole vpc infra, could able to build it in one go without any error... thanks for the detailed and clear cut explanation man... looking forward for next videos on terraform 😀

    • @AOSNote
      @AOSNote  2 роки тому +1

      Hello, great to hear and I am glad it helped.

    • @pathikdas2327
      @pathikdas2327 Рік тому

      @@AOSNote Pls send

  • @enohmarccelus8433
    @enohmarccelus8433 Рік тому

    this is the only best way to teach this terraform modules
    you did well

  • @kck4030
    @kck4030 2 роки тому +1

    I just found you guy, you are good. My husband watch your CloudFormation video and he recommended you

    • @AOSNote
      @AOSNote  2 роки тому

      Hello Kck. Welcome to the channel! Many thanks to your husband for the recommendation, and thank you for your feedback. I appreciate it.

  • @andrewnwajei574
    @andrewnwajei574 Рік тому

    Please keep uploading videos. You are so clear and audible. Super HELPFUL!!!

  • @blypt
    @blypt Рік тому

    Very well defined all worked for me now, Initially I had few issues which I found was a Terraform compatability issue after installing another version of Terraform I am able to delliver full project till Application load balancer, Thank you so much for the excellent presentation.

  • @SaurabhAditya1
    @SaurabhAditya1 2 роки тому +3

    Amazing bro !!!!, I have seen multiple terraform videos about module even from Edureka, but your way of explaining things about variables, about output.tf file is amazing, thanks for all the knowledge :)

  • @juliens5641
    @juliens5641 Рік тому

    Awesome tutorial & well explained! grateful for this channel and Thank you.

  • @limtless232
    @limtless232 Рік тому +1

    amazing video, Thanks! A doubt, from 44:00, you mentioned you have created an S3 bucket and others in the previous lecture, can I get the link to the "previous lecture" please, Thanks you

    • @ninaddivekar150
      @ninaddivekar150 Рік тому

      I too need link for previous lecture..kindly provide link..and what contents are stored in the bucket other than the terraform state

  • @helenchukwukelu4383
    @helenchukwukelu4383 2 роки тому +1

    Just Happy to see this video :). I am trying this out today. God bless you 🙏

    • @AOSNote
      @AOSNote  2 роки тому

      Amen! You are welcome Helen and God bless you too.

  • @DeepakKumar-cx4jf
    @DeepakKumar-cx4jf Рік тому +1

    really appriciated bro the way u teach it's outstanding.

  • @AjayUmredkar
    @AjayUmredkar 5 місяців тому

    Awesome explanation. thanks buddy

  • @ajayyewale9681
    @ajayyewale9681 11 місяців тому

    You made my Saturday Learningfull..

  • @hiddenbutton6072
    @hiddenbutton6072 2 роки тому +4

    You're one of the best for learning terraform and aws services. Thank you for your content!
    Could you provide a link to the lecture where you set up the S3 bucket you refer to at 45:00 ? Thank you.

    • @neetesshhr
      @neetesshhr Рік тому

      @AOSNote i am also stuck in it

    • @AOSNote
      @AOSNote  Рік тому

      Please checkout this playlist on how to setup an s3 backend: ua-cam.com/play/PL184oVW5ERMCirZu6wRL2NmUENHixB4mt.html

  • @Iamtoluakin
    @Iamtoluakin 2 роки тому +2

    At last !!!! I'm jumping on this asap

    • @AOSNote
      @AOSNote  2 роки тому

      Lol. This is one of the videos from the terraform course to deploy esc service. Let me know if you have any questions.

  • @More-right-rudder
    @More-right-rudder Рік тому +1

    Great work. Learning a lot through these videos. God bless you man!

    • @AOSNote
      @AOSNote  Рік тому

      Awesome, thank you!

  • @ninaddivekar150
    @ninaddivekar150 Рік тому

    From 44:00, you mentioned you have created an S3 bucket and others in the previous lecture, can I get the link to the "previous lecture" please, Thanks you.What aare the other pre-requistes i need to know before starting this ?

  • @Imran_kpk
    @Imran_kpk 4 місяці тому

    very very best explaination thanks

  • @JeremiahElochukwu
    @JeremiahElochukwu Рік тому

    Thanks, a lot boss, it's a really great video, but boss I did not see the time you run the terraform init command, in the video, and also the time you created the s3 bucket, and how you stored the terraform state into it, thanks boss

  • @redjonvarfi3659
    @redjonvarfi3659 2 роки тому +2

    Hello, thank you for the lectures given so far, they have been very useful. When will we have the opportunity to see a lecture with Kubernetes cluster -> AWS

    • @AOSNote
      @AOSNote  2 роки тому

      You are welcome. I will record lectures on Kubernetes cluster next year.

  • @lukacalebkas7695
    @lukacalebkas7695 Рік тому

    thank you so much for this lecture on terraform modules, please i need the video you created the "terraform_user" I've been having error: failed to get config profile.......... thank you so much.

  • @bhaskarkonanhalli6606
    @bhaskarkonanhalli6606 4 місяці тому

    Hi Can you please put the previous videos ie to create S3 for this project. Thanks

  • @blypt
    @blypt Рік тому

    Unknown token: 3:29 IDENT var.vpc_cidr, cidr_block = var.vpc_cidr , I am having this error in the above code while I can see it worked for you any comments or suggestion please.?

  • @nntun03
    @nntun03 Рік тому

    wooooww! fantastic, so clear and precise !! pls help do the same using Terragrunt and with a NAT GW....thanks for your effrots..

  • @clintonebai1351
    @clintonebai1351 Рік тому

    Thank you for this great tutorial bro

  • @nkolikaokafor1757
    @nkolikaokafor1757 2 роки тому +1

    Hi @AOS Note, awesome work you're doing. Could you provide the link to the video to configure the tfstate file for the s3 bucket? It was referenced in this video but I can't seem to find that particular video. Thanks!

    • @AOSNote
      @AOSNote  Рік тому

      Hello Nkolika,
      For this month's project, I have add the steps of using S3 and DynamoDB for your Terraform state file.

  • @darrisgeorge7488
    @darrisgeorge7488 Рік тому

    Be sure to do terraform init before adding code when you create the variable.tf, main.tf and ouput.tf so you don't have issues referencing variables

  • @tajudeenadedeji6390
    @tajudeenadedeji6390 Рік тому

    This is awesome.Thank you

  • @dazzlepecs
    @dazzlepecs 2 роки тому

    Bless you for sharing this!!

    • @AOSNote
      @AOSNote  2 роки тому

      Amen and you too!🙏

  • @omichael003
    @omichael003 2 роки тому

    Great content, thanks for the course

    • @AOSNote
      @AOSNote  2 роки тому

      You are welcome and thank you.

  • @SonCloud-nj9dh
    @SonCloud-nj9dh Рік тому

    Could you please describe/explain how another module or resource makes use of the VPC Outputs parameter?

  • @dayobalogun5248
    @dayobalogun5248 Рік тому

    These are lovely resources, I have done some training but I need to get a role and solidify my knowledge, how can you help?

  • @rajubhovi5884
    @rajubhovi5884 Рік тому

    One of the best lecture...
    Will you please share the whole code.?
    It will really helpful

    • @AOSNote
      @AOSNote  Рік тому

      Sure Raju. What's your email?

  • @adewaleibinayo9471
    @adewaleibinayo9471 10 місяців тому

    great job!

  • @dandelion-lemon
    @dandelion-lemon 8 місяців тому

    Can you share with your GitHub ? Where we could fork the project?

  • @LOVEDAYPOBI
    @LOVEDAYPOBI 2 роки тому

    Hi AOS thank you so much for this insightful explanations, please don't you have any terraform video for Auto-Scaling with EC2 Launch Template?

    • @SaurabhAditya1
      @SaurabhAditya1 2 роки тому +1

      my suggestion, learn from this video and try to use modules available on internet :)

  • @dalidavila
    @dalidavila 2 роки тому

    Tnx a lot man, great job!

    • @AOSNote
      @AOSNote  2 роки тому

      You're welcome!

  • @sachinkhisti9104
    @sachinkhisti9104 Рік тому

    Hello Sir, This is project perfectly explained, Could you please guide me how to create ec2 servers in above created Public and private subnets using ec2 modules. I tried multiple way but getting many errors. Your help is highly appreciated on quick way...!!

  • @kelvinpatel-ce4rd
    @kelvinpatel-ce4rd Рік тому

    Hi, very nice explanation!! but i have one question. is it necessary to create two same variables.tf files one inside modules/vpc and other inside project folder?

    • @AOSNote
      @AOSNote  Рік тому +1

      No its not. In the project folder, you can enter the values of your module arguments directly in your main.tf file.

  • @hassansimonsesay8082
    @hassansimonsesay8082 2 роки тому

    My question here, if I created a folder on my local machine and didn't create a private repository on GitHub, after the session I want to push all this work on my Github, how can I go with this process.

  • @salaudeendhikrillah1354
    @salaudeendhikrillah1354 2 роки тому

    Hello AOS , Please can you share the process to download the terraform-module file ,cant seem to find it in your description. Thank you

  • @MohamedElsayed-tc5yg
    @MohamedElsayed-tc5yg Рік тому

    Awesome, Thanks

  • @hemantdhiman6179
    @hemantdhiman6179 11 місяців тому

    Thank you so much!!!

  • @abisolataiwo9995
    @abisolataiwo9995 2 роки тому

    Nice work bro

    • @AOSNote
      @AOSNote  2 роки тому

      You are welcome.

  • @DeJotta27
    @DeJotta27 2 роки тому

    Hey man, you saved me! Thanks so much!
    Do u have some classes about setting VPN ?

    • @AOSNote
      @AOSNote  2 роки тому +1

      You are welcome! No, I don't have class on setting up VPN, but I will add it to the list of videos that I will create in the future.

  • @KingsleyAchiobu
    @KingsleyAchiobu Рік тому

    Thank you for this video. I have tried several times following you word for word, but I keep getting this error message "│ Error: Reference to undeclared input variable

    │ on ..\modules\vpc\outputs.tf line 33, in output "private_data_subnet_az2_id":
    │ 33: value = var.aws_subnet.private_data_subnet_az2.id

    │ An input variable with the name "aws_subnet" has not been declared. This variable can be declared with a variable "aws_subnet" {} block." Please what am I missing?

    • @AOSNote
      @AOSNote  Рік тому +1

      In your output file, line 33. For the value, remove “var.” from var.aws_subnet.private…..

    • @AOSNote
      @AOSNote  Рік тому +1

      You made a mistake there

  • @helenchukwukelu4383
    @helenchukwukelu4383 2 роки тому +1

    I have a question, how do I configure my profile as you did in the project. So in my terminal I already used "aws configure" to input my access key and Secret credentials but it seems you created a profile for it which you referenced. How do I do that please? Thank you 🙏

    • @AOSNote
      @AOSNote  2 роки тому +2

      Hey Helen, these are the steps to configure a named profile:
      1. Install AWS CLI
      2. Create a user that has programmatic access in IAM (Make sure you download the user's access key id and secret access key)
      3. Run the following command in your terminal to configure the profile: aws configure --profile terraform-user
      Note: "terraform-user" is what I named my profile, and you can give your profile any name you want.
      After you type the "aws configure --profile terraform-user" command, you will be prompted to enter your user's aws_access_key_id, aws_secret_access_key, region, and output.
      4. Optional: after you have configured the profile, the credentials will be stored in this directory: ~/.aws
      In the .aws directory, there will be a config and credentials files. Your credentials are stored in these files.
      5. Lastly, add whatever name you gave your profile in terraform like I did in this video at 51:17
      Below are the videos I did on how to configure a named profile
      To configure a named profile on your computer watch the following videos:
      1. ua-cam.com/video/5YnTstk3RxM/v-deo.html&t
      2. ua-cam.com/video/Gc4KKVWl6TI/v-deo.html
      3. ua-cam.com/video/iOt95wYKarE/v-deo.html&t

    • @helenchukwukelu4383
      @helenchukwukelu4383 2 роки тому +1

      @@AOSNote I appreciate this. Thanks so much

  • @efemenaukwameh1406
    @efemenaukwameh1406 2 роки тому

    On 40 minutes plus. Where do I find the tfstatefile process for the s3 bucket, for those of us here for the modules. On this video, you said previous lecture, but I can't find the lecture/video. By the way Great job you doing..

    • @AOSNote
      @AOSNote  2 роки тому

      Hello Efemena, this is one of the videos from my course and you can find the full course on my website.
      website: www.aosnote.com/
      courses: www.aosnote.com/store
      To complete the part you mentioned, please watch this video: ua-cam.com/video/vTJSV5xeQ5c/v-deo.html&t

    • @efemenaukwameh1406
      @efemenaukwameh1406 2 роки тому

      @@AOSNote A huge fan, but that's not the part I am after, I undestand CLI and IAM, it is the storage of the tfstatefile I need. Yes I agree that you have placed a lot of work and people should acquire more externally. But the youtube videos should be a more complete/smooth process. I will attempt to see out the tfstate file myself, just an advise. Hey please keep up the great work you are doing, you inspire me. I am also in no place to be advising you. Much love

  • @winnie088
    @winnie088 2 роки тому

    Can you please share the 3 tier architecture diagram? Then it will be easy to understand.

    • @AOSNote
      @AOSNote  2 роки тому +2

      Hello, you can download the VPC reference architecture here: github.com/azeezsalu/terraform-tutorial-reference-files/blob/main/2.%20VPC%20Reference%20Architecture.jpg

    • @winnie088
      @winnie088 2 роки тому

      @@AOSNote thank you so much!

    • @AOSNote
      @AOSNote  2 роки тому

      @@winnie088 You are welcome

  • @Ky-jy6ey
    @Ky-jy6ey 2 роки тому

    My output are now showing? Where would this be located?

    • @AOSNote
      @AOSNote  2 роки тому

      Your output will be printed in your terminal after your resources has been created.

  • @jean2dieuj2d2
    @jean2dieuj2d2 2 роки тому

    please can you share the process to download the terraform-module file thanks

    • @AOSNote
      @AOSNote  2 роки тому +1

      Hello Jean2Dieu
      Please look in the video's description and you will find the link to download the reference file there.

    • @jean2dieuj2d2
      @jean2dieuj2d2 2 роки тому

      @@AOSNote thanks

  • @GulimBekkalpenova
    @GulimBekkalpenova Рік тому

    the best

  • @atulkumarpk9243
    @atulkumarpk9243 Рік тому +1

    You should show the entire architecture before you are goring to build. That will be much clear. Explain each component of the architecture while building it, would be easier.

  • @pradeepedirisinghe8215
    @pradeepedirisinghe8215 9 місяців тому

    I have followed the step but I'm getting the following error.
    $ terraform init
    Initializing the backend...
    Initializing modules...
    - vpc in ..\modules\vpc

    │ Error: failed to get shared config profile, terraform-user

  • @donpasscal
    @donpasscal 2 роки тому

    Hello, i have followed the instructions twice from scratch, but i keep getting the same error,,,,,,can you help
    PS C:\TERRAFORM-MODULES\modules\vpc> terraform init
    There are some problems with the configuration, described below.
    The Terraform configuration must be valid before initialization so that
    Terraform can determine which modules and providers need to be installed.

    │ Error: Invalid output name

    │ on output.tf line 13, in output "public_subnet_az1.id":
    │ 13: output "public_subnet_az1.id" {

    │ A name must start with a letter or underscore and may contain only letters, digits, underscores, and dashes.