---
title: "Discussion on \"Deployment of tomcat server in AWS EC2 and stream logs to CloudWatch\" | Hashnode"
description: "Discussion on \"Deployment of tomcat server in AWS EC2 and stream logs to CloudWatch\". Setup EC2 Instance\n1. Create EC2 Instance Using Terraform or AWS Management Console\nCreate a main.tf file with the following configuration:\nprovider \"aws\" {\n  region = \"us-east-1\"\n}\n\nresource \"aws_instance\" \"tomcat\" {\n  ami           = \"ami-0866a3c86..."
url: "https://hashnode.com/posts/deployment-of-tomcat-server-in-aws-ec2-and-stream-logs-to-cloudwatch/672f23a1b02a2924e8d87b43"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Deployment of tomcat server in AWS EC2 and stream logs to CloudWatch](https://shubhamkshetre.hashnode.dev/deployment-of-tomcat-server-in-aws-ec2-and-stream-logs-to-cloudwatch?utm_source=hashnode&utm_medium=feed)

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...

Nov 9, 2024 · 5 min read · shubhamkshetre.hashnode.dev  
Read the article

-   [#stream-logs](https://hashnode.com/tag/stream-logs)
-   [#aws](https://hashnode.com/tag/aws)
-   [#tomcat-installation-on-ec2-instance](https://hashnode.com/tag/tomcat-installation-on-ec2-instance)
-   [#cloudwatch-agent-in-aws](https://hashnode.com/tag/cloudwatch-agent-in-aws)
-   [#cloudwatch-logs](https://hashnode.com/tag/cloudwatch-logs)

## Written by

[Shubham Kshetre](https://hashnode.com/@ShubhamKshetre)

@ShubhamKshetre · Pune,India

  
[View profile](https://hashnode.com/@ShubhamKshetre)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
