DevOps Classroomnotes 27/May/2022

Terraform contd..

  • Creating a Security Group in AWS, which is used as firewall for the virtual machines.
    • We need to open 22 port for ssh communication from anywhere (0.0.0.0/0)
    • We need to open 80 port as we will be using this for web servers
    • you can give the name of the security group as webserver
      Preview
      Preview
  • Write the terraform resource to create the same security group in the vpc created by terraform
  • Refer Here for the official docs
  • Refer Here for the changes done
    Preview
  • Now lets assume in our application architecture we use
    • web servers => apache which runs on linux machine and can be accessed over port 80
    • application servers => tomcat which runs on some linux machine and can be accessed over port 8080
    • databases servers => mysql which runs on port 3306
  • We need to create two more security groups
  • AWS Architecture for ntier application
    Preview
  • AZure Architecture for ntier application
    Preview

Leave a Reply

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

About continuous learner

devops & cloud enthusiastic learner