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
- 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
- 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
- AZure Architecture for ntier application