DevOps Classroomnotes 06/Aug/2023

Terraform contd

ntier-aws:

  • try creating a security groups Refer Here by using list(object) as input type

    • web
      • ingress:
        • http (80): allow to all
        • ssh (22): allow to all
    • app
      • ingress:
        • ssh (22): allow to all
        • ssh (8080): allow to all
    • db:
      • ingress:
        • tcp 3306: allow within vpc range
  • Refer Here for the changes to include security groups
  • In AWS to make network work

    • We need to create an internet gateway and attach to vpc
    • We need to add route to the default route table to internet gateway
  • Lets use datasource of route table to figure out the default route table id
    Preview
  • Refer Here for the changes to make the network ready for next steps in AWS
    Preview
  • Azure
    Preview

Concepts

  • Datasources: Datasources in terraform allows us to fetch information from provider Refer Here
  • Outputs: They print or expose the information/detail Refer Here

Exercise:

  • Try Creating a
    • Azure VM/ AWS EC2
    • Azure SQL/AWS RDS mysql

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner