corasan
corasan

Reputation: 2754

Can I deploy a Web server and an App server to the same AWS EC2 instance?

I have a Rails API and a Node app. Can I deploy both to the same AWS EC2 instance?

Upvotes: 0

Views: 307

Answers (2)

irimawi
irimawi

Reputation: 368

Sure, this is fine. It is recommended to separate your db behind a firewall though (could be VPC or a security group)

Upvotes: 1

smartcaveman
smartcaveman

Reputation: 42256

Yes. Your EC2 instance just needs to have the appropriate prerequisites installed and enough system resources available to run both.

Upvotes: 3

Related Questions