Is there a way to migrate a Cloud9 instance to a regular EC2 instance?

286 views Asked by At

I have a Cloud9 EC2 instance running on Linux 2 AMI. The nice thing about the Cloud9 instance is that all the software packages I want (Rails) are installed and I didn't have to configure or install anything on the instance. Of course the instance shuts down when I'm not working in the environment. When I'm done developing, is there a way to migrate my development environment into a production environment? Or do I have to start a new EC2 instance, configure it (pain ITA), update it, lock it down, and download code from a repo? Or is there an AMI that is similar to what Cloud9 runs?

1

There are 1 answers

0
Alan On

Yes, though it greatly depends on what your definition of production means, and it's far from best practice to do so.

If all you want to do is prevent the EC2 instance that runs your C9 environment from shutting down, remove the c9-automatic-shutdown entry from /etc/cron.d and optionally run restart cron. For good measure you may wish to back up ~/.c9/stop-if-inactive.sh and edit it to be a no-op.

I do have to reiterate making that one change is hardly making your C9/EC2 environment production ready. If you're looking for a batteries included way to create applications that are production ready, consider AWS Amplify.