Deployment of tomcat server in AWS EC2 and stream logs to CloudWatch
Setup EC2 Instance
1. Create EC2 Instance Using Terraform or AWS Management Console
Create a main.tf file with the following configuration:
provider "aws" {
region = "us-east-1"
}
resource "aws_instance" "tomcat" {
ami = "ami-0866a3c86...
shubhamkshetre.hashnode.dev5 min read