Deploying freecodecamp on an EC2 instance

Is it possible to Deploy the codebase on an EC2 instance . If yes what are the things I should configure manually or take care of?

Hello,

The codebase can be deployed on any computer that meets the requirements.

As for your second question about configuration, it is too broad for me to answer.

:slight_smile:

My instance has all the requirements.

But I think I would need somebody’s help for configuring the IP addresses in .env file and Inbound traffic rules, which is something I have been facing issues with.

Hope to receive some response from somebody that can help.

Here’s the REAL problem you are going to have. This setup is safe as long as you can do it locally (internally) and it expects that your system has a local browser. Everything depends on connecting to localhost (the database and the services). There are ways to open http and https ports via security group rules, but that’s NOT safe in this case since anyone will be able to access it from outside. There is a way to limit the access to just your personal external IP but I am hesitant to even mention it. By the way, before all this can happen your instance must be created in a public subnet with a public IP address or an elastic IP address. Then the services in the .env must be changed to this public IP instead of localhost. The ip for the mongo database can still be localhost.

1 Like

You have to provide more information to render a helpful response. what issues are you receiving in regard to inbound outbound rules/ip?

I had followed the guide from documentation to run freecodecamp locally(but on an EC2 instance ). and I can not access my port 8000. I am new to both aws and webdev. So really I might not even know what issues there might be.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.