How to open a port for http traffic on ec2 from node app?

0 votes

I am having an ec2 instance running a node app on port 3000. Now I need to run additional apps on this server, which currently are running on their own servers, also on port 3000. So I need to migrate them all to one server, and presumably run them on different ports.

So if I want to run node apps and have them on 3000, 3010, 3020, etc, how do I do this the right way?

Can anyone help me with this?

Thanks.

Jul 17, 2018 in DevOps on Cloud by Damon Salvatore
• 5,450 points

recategorized Nov 12, 2018 by Priyaj 30 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Here are the steps that you can follow. You need to authorize inbound traffic to your ec2 instance via AWS Console, or API.Below is the link which you can check:

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html

Since authorizing is normally a one off, probably better to do it through the AWS Console, however, if one of your requirements is to spin up node apps in different ports in an automated fashion, then you'll probably want to look at this:

http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/EC2.html#authorizeSecurityGroupIngress-property

I hope the above information will resolve your query.

answered Jul 17, 2018 by Atul
• 10,220 points

Related Questions In DevOps on Cloud

0 votes
1 answer

How can I remove a port from url for node app using nginx

If you run your node server on ...READ MORE

answered Apr 10, 2018 in DevOps on Cloud by ajs3033
• 7,120 points
341 views
0 votes
1 answer
0 votes
1 answer
+1 vote
3 answers
0 votes
1 answer
+13 votes
2 answers
+3 votes
2 answers
0 votes
1 answer

Unable to save state: open terraform.tfstate: permission denied

Check the access permission of the directory ...READ MORE

answered Jul 13, 2018 in DevOps on Cloud by Atul
• 10,220 points
144 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.