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,980 points

recategorized Nov 12, 2018 by Priyaj 4,232 views

1 answer to this question.

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,240 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,300 points
4,066 views
0 votes
1 answer

I am looking for a python code to get my Azure VM status in my email , like whether the running vms port is open to the internet. If its open to internet I should get a mail notification

Hey, @Sourav, Check this out https://www.edureka.co/community/66025/azure-vm-monitoring It deals with ...READ MORE

answered May 29, 2020 in DevOps on Cloud by Sirajul
• 59,230 points
1,850 views
0 votes
1 answer

How to use specific node version for yarn setup in AWS deployment?

You should be able to set your ...READ MORE

answered Jul 20, 2018 in DevOps on Cloud by Kalgi
• 52,350 points
1,035 views
0 votes
1 answer
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,061 views
+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,240 points
2,121 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP